Skip to content

Commit bc64994

Browse files
committed
itest: improve variable name
Add code clarity.
1 parent 56f9a5b commit bc64994

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

itest/assertions.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,7 @@ func AssertSendEvents(t *testing.T, targetScriptKey []byte,
10101010

10111011
success := make(chan struct{})
10121012
timeout := time.After(defaultWaitTimeout)
1013-
startStatus := from
1013+
expectedStatus := from
10141014

10151015
// By default, if the target script key is not given we will accept all
10161016
// send events.
@@ -1056,7 +1056,7 @@ func AssertSendEvents(t *testing.T, targetScriptKey []byte,
10561056
require.Emptyf(
10571057
t, event.Error, "send event error: %x", event,
10581058
)
1059-
require.Equal(t, startStatus.String(), event.SendState)
1059+
require.Equal(t, expectedStatus.String(), event.SendState)
10601060

10611061
// Fully close the stream once we definitely no longer need the
10621062
// stream.
@@ -1069,7 +1069,7 @@ func AssertSendEvents(t *testing.T, targetScriptKey []byte,
10691069
return
10701070
}
10711071

1072-
startStatus++
1072+
expectedStatus++
10731073
}
10741074
}
10751075

0 commit comments

Comments
 (0)