Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
HaraldNordgren committed Sep 27, 2024
1 parent 406a97f commit 1bd60d7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions internal/integration/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func TestMutation(t *testing.T) {
require.Errorf(t, err, "client does not support mutations")
}

type subscriptionCountResult struct {
type subscriptionResult struct {
clientUnsubscribed bool
serverChannelClosed bool
}
Expand All @@ -71,20 +71,20 @@ func TestSubscription(t *testing.T) {
cases := []struct {
name string
unsubThreshold time.Duration
expected subscriptionCountResult
expected subscriptionResult
}{
{
name: "client_unsubscribed",
unsubThreshold: 300 * time.Millisecond,
expected: subscriptionCountResult{
expected: subscriptionResult{
clientUnsubscribed: true,
serverChannelClosed: false,
},
},
{
name: "server_closed_channel",
unsubThreshold: 5 * time.Second,
expected: subscriptionCountResult{
expected: subscriptionResult{
clientUnsubscribed: false,
serverChannelClosed: true,
},
Expand All @@ -107,7 +107,7 @@ func TestSubscription(t *testing.T) {
var (
counter = 0
start = time.Now()
result = subscriptionCountResult{}
result = subscriptionResult{}
)

for loop := true; loop; {
Expand Down

0 comments on commit 1bd60d7

Please sign in to comment.