Skip to content

Commit

Permalink
Merge pull request #175 from ecordell/badzookie-flake
Browse files Browse the repository at this point in the history
Bump TestReadBadZookie gcWindow
  • Loading branch information
josephschorr committed Oct 6, 2021
2 parents 5fcd7ff + bf75774 commit 713a97c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/services/v0/acl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,8 @@ func TestRead(t *testing.T) {
func TestReadBadZookie(t *testing.T) {
require := require.New(t)

client, stop, revision, _ := newACLServicer(require, 0, 20*time.Millisecond, 0)
gcWindow := 100 * time.Millisecond
client, stop, revision, _ := newACLServicer(require, 0, gcWindow, 0)
defer stop()

_, err := client.Read(context.Background(), &v0.ReadRequest{
Expand All @@ -266,7 +267,7 @@ func TestReadBadZookie(t *testing.T) {
require.NoError(err)

// Wait until the gc window expires
time.Sleep(40 * time.Millisecond)
time.Sleep(2 * gcWindow)

_, err = client.Read(context.Background(), &v0.ReadRequest{
Tuplesets: []*v0.RelationTupleFilter{
Expand Down

0 comments on commit 713a97c

Please sign in to comment.