From 9c62f8d38d03ff304dc9368220cbc4ec97b02fa5 Mon Sep 17 00:00:00 2001 From: Cody Roseborough Date: Tue, 22 Mar 2016 15:19:39 -0700 Subject: [PATCH] Fixes some typos --- control/mttrie_test.go | 2 +- control/plugin/execution_test.go | 2 +- control/runner.go | 2 +- control/runner_test.go | 2 +- core/plugin_test.go | 2 +- docs/REST_API.md | 2 +- mgmt/rest/rbody/plugin.go | 2 +- scheduler/workflow.go | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/control/mttrie_test.go b/control/mttrie_test.go index 148a376ec..72cea7984 100644 --- a/control/mttrie_test.go +++ b/control/mttrie_test.go @@ -87,7 +87,7 @@ func TestTrie(t *testing.T) { So(err, ShouldBeNil) So(dd[0].Namespace(), ShouldResemble, []string{"d", "a", "n", "b", "a", "r"}) }) - Convey("Mulitple versions", func() { + Convey("Multiple versions", func() { lp := new(loadedPlugin) lp.Meta.Version = 1 mt := newMetricType([]string{"intel", "foo"}, time.Now(), lp) diff --git a/control/plugin/execution_test.go b/control/plugin/execution_test.go index 34ee4352d..97714c5ba 100644 --- a/control/plugin/execution_test.go +++ b/control/plugin/execution_test.go @@ -153,7 +153,7 @@ func TestWaitForPluginResponse(t *testing.T) { }) }) - Convey("called with PluginExecutor that exits immediately without returning a reponse", func() { + Convey("called with PluginExecutor that exits immediately without returning a response", func() { mockExecutor := new(MockPluginExecutor) mockExecutor.WaitTime = time.Millisecond * 100 mockExecutor.WaitError = errors.New("Exit 127") diff --git a/control/runner.go b/control/runner.go index c5f9364b1..831bc81c1 100644 --- a/control/runner.go +++ b/control/runner.go @@ -180,7 +180,7 @@ func (r *runner) startPlugin(p executablePlugin) (*availablePlugin, error) { } if resp == nil { - e := errors.New("no reponse object returned from plugin") + e := errors.New("no response object returned from plugin") runnerLog.WithFields(log.Fields{ "_block": "start-plugin", "error": e.Error(), diff --git a/control/runner_test.go b/control/runner_test.go index 3aed68506..4a1568aca 100644 --- a/control/runner_test.go +++ b/control/runner_test.go @@ -491,7 +491,7 @@ func TestRunnerPluginRunning(t *testing.T) { exPlugin.NilResponse = true // set to not response ap, e := r.startPlugin(exPlugin) - So(e, ShouldResemble, errors.New("no reponse object returned from plugin")) + So(e, ShouldResemble, errors.New("no response object returned from plugin")) So(ap, ShouldBeNil) }) diff --git a/core/plugin_test.go b/core/plugin_test.go index 944c7af09..dd98d4b6a 100644 --- a/core/plugin_test.go +++ b/core/plugin_test.go @@ -100,7 +100,7 @@ func TestRequestedPlugin(t *testing.T) { }) // Create a plugin request and try to add a signature from an non-existent signature file - Convey("When passing in a non-existant signature file", t, func() { + Convey("When passing in a non-existent signature file", t, func() { rp3, err3 := NewRequestedPlugin(PluginPath) So(err3, ShouldBeNil) err3 = rp3.ReadSignatureFile(SignatureFile + "foo") diff --git a/docs/REST_API.md b/docs/REST_API.md index 7f80047b6..3d8dc8edc 100644 --- a/docs/REST_API.md +++ b/docs/REST_API.md @@ -185,7 +185,7 @@ _**Example Response**_ { "meta": { "code": 200, - "message": "Plugin successfuly unloaded (mockv1)", + "message": "Plugin successfully unloaded (mockv1)", "type": "plugin_unloaded", "version": 1 }, diff --git a/mgmt/rest/rbody/plugin.go b/mgmt/rest/rbody/plugin.go index 8cc2284ce..a064546a1 100644 --- a/mgmt/rest/rbody/plugin.go +++ b/mgmt/rest/rbody/plugin.go @@ -58,7 +58,7 @@ type PluginUnloaded struct { } func (u *PluginUnloaded) ResponseBodyMessage() string { - return fmt.Sprintf("Plugin successfuly unloaded (%sv%d)", u.Name, u.Version) + return fmt.Sprintf("Plugin successfully unloaded (%sv%d)", u.Name, u.Version) } func (u *PluginUnloaded) ResponseBodyType() string { diff --git a/scheduler/workflow.go b/scheduler/workflow.go index 8c0b7e102..d30335294 100644 --- a/scheduler/workflow.go +++ b/scheduler/workflow.go @@ -341,7 +341,7 @@ func (s *schedulerWorkflow) StateString() string { return WorkflowStateLookup[s.state] } -// workJobs takes a slice of proccess and publish nodes and submits jobs for each for a task. +// workJobs takes a slice of process and publish nodes and submits jobs for each for a task. // It then iterates down any process nodes to submit their child node jobs for the task func workJobs(prs []*processNode, pus []*publishNode, t *task, pj job) { // optimize for no jobs