Skip to content

Commit

Permalink
typo fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
depapp committed Oct 5, 2018
1 parent e7e53d0 commit 763da54
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ correctly, or simply just providing metrics about your site or service.

The goal is to make writing end-to-end tests simple and to take the effort out
of building these systems. To enable that, a number of packages are provided
to aid in this effort. The webhook package provides a simple way to receieve
to aid in this effort. The webhook package provides a simple way to receive
notifications of received events. With those packages together, we can write
elegant tests like the following.

Expand All @@ -40,7 +40,7 @@ func (h *Harness) OrbitalSmoke(ctx context.Context, o *orbital.O) {
// Send request to API for handling
id := s.send([]byte(tmpl))
// tell the webhook we're waiting to recieve this message
// tell the webhook we're waiting to receive this message
err := h.RouteLogger.Sent(id)
if err != nil {
o.Errorf("%{error}v", err)
Expand Down
2 changes: 1 addition & 1 deletion example/tester/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func main() {
orbital.WithStats(stats.DefaultEngine),
orbital.WithTimeout(5*time.Second),
)
// Manages hooking events back into the test. The tests must knoow to wait
// Manages hooking events back into the test. The tests must know to wait
// on this ID
rl := webhook.NewRouteLogger(func(r webhook.Request) string {
return gjson.Get(r.Body, "id").Str
Expand Down
4 changes: 2 additions & 2 deletions orbital/orbital.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ type O struct {
mu sync.Mutex
}

// Error is equivlant to Log followed by Fail
// Error is equivalent to Log followed by Fail
func (o *O) Error(args ...interface{}) {
o.log(fmt.Sprintln(args...))
o.Fail()
}

// Errorf is equivlant to Logf followed by Fail
// Errorf is equivalent to Logf followed by Fail
func (o *O) Errorf(fstr string, args ...interface{}) {
o.log(fmt.Sprintf(fstr, args...))
o.Fail()
Expand Down
2 changes: 1 addition & 1 deletion webhook/routelogger.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func (s *RouteLogger) Sent(key string) error {
if _, ok := s.rc[key]; ok {
return errors.Errorf("key %s already sent", key)
}
// Channel buffer 1 prevents the race betweeen recieving an event on the
// Channel buffer 1 prevents the race between receiving an event on the
// webhook and calling `Wait`. Otherwise, the event would be dropped in
// the select statement for Record
s.rc[key] = make(chan Request, 1)
Expand Down

0 comments on commit 763da54

Please sign in to comment.