Skip to content

Commit

Permalink
Merge pull request #865 from ava-labs/fix-flaky-tests
Browse files Browse the repository at this point in the history
fix flaky tests
  • Loading branch information
StephenButtolph authored May 28, 2021
2 parents 62e466d + bc6f661 commit 59980ca
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions database/rpcdb/db_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,9 @@ func TestInterface(t *testing.T) {
db := NewClient(rpcdbproto.NewDatabaseClient(conn))
test(t, db)

if err := conn.Close(); err != nil {
t.Fatal(err)
}
if err := listener.Close(); err != nil {
t.Fatal(err)
}
server.Stop()
_ = conn.Close()
_ = listener.Close()
}
}

Expand Down Expand Up @@ -87,13 +83,9 @@ func BenchmarkInterface(b *testing.B) {

bench(b, db, "rpcdb", keys, values)

if err := conn.Close(); err != nil {
b.Fatal(err)
}
if err := listener.Close(); err != nil {
b.Fatal(err)
}
server.Stop()
_ = conn.Close()
_ = listener.Close()
}
}
}

0 comments on commit 59980ca

Please sign in to comment.