Skip to content

Commit

Permalink
PR: Adhere to PR suggestion about typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzadlone committed Jan 24, 2023
1 parent 5cbe3b1 commit e55a45b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion events/publisher.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func NewPublisher[T any](ch Channel[T], streamBufferSize int) (*Publisher[T], er
}, nil
}

// Event returns the subsciption channel
// Event returns the subscription channel
func (p *Publisher[T]) Event() Subscription[T] {
return p.event
}
Expand Down
8 changes: 4 additions & 4 deletions tests/integration/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ var (
inMemoryStore bool
)

const subsciptionTimeout = 1 * time.Second
const subscriptionTimeout = 1 * time.Second

// Represents a subsciption request.
// Represents a subscription request.
type SubscriptionRequest struct {
Request string
// The expected (data) results of the issued request.
Expand Down Expand Up @@ -460,7 +460,7 @@ func ExecuteRequestTestCase(
errs = append(errs, sResult.Errors...)
data = append(data, sData...)
// a safety in case the stream hangs.
case <-time.After(subsciptionTimeout):
case <-time.After(subscriptionTimeout):
assert.Fail(t, "timeout occured while waiting for data stream", test.Description)
}
}
Expand All @@ -472,7 +472,7 @@ func ExecuteRequestTestCase(
errs = append(errs, sResult.Errors...)
data = append(data, sData...)
// a safety in case the stream hangs or no results are expected.
case <-time.After(subsciptionTimeout):
case <-time.After(subscriptionTimeout):
if q.ExpectedTimout {
continue
}
Expand Down

0 comments on commit e55a45b

Please sign in to comment.