Skip to content

Commit a900730

Browse files
author
Franck Rupin
committed
Fix failing test
- A test was failing due to changes in the code. - This commit bring the changes to the test to make it pass
1 parent bc71e0c commit a900730

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

ovsdb/client_integration_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func TestClientIntegration(t *testing.T) {
3030
defer c.Close()
3131

3232
// Cancel RPCs if they take too long.
33-
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
33+
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
3434
defer cancel()
3535

3636
t.Run("echo", func(t *testing.T) {
@@ -55,7 +55,8 @@ func TestClientIntegrationConcurrent(t *testing.T) {
5555
doneWG.Add(n)
5656

5757
// Block all goroutines until they're done spinning up.
58-
sigC := make(chan struct{}, 0)
58+
//sigC := make(chan struct{}, 0)
59+
sigC := make(chan struct{})
5960

6061
for i := 0; i < n; i++ {
6162
go func(c *ovsdb.Client) {
@@ -87,7 +88,7 @@ func testClientDatabases(ctx context.Context, t *testing.T, c *ovsdb.Client) {
8788
t.Fatalf("failed to list databases: %v", err)
8889
}
8990

90-
want := []string{"Open_vSwitch"}
91+
want := []string{"Open_vSwitch", "_Server"}
9192

9293
if diff := cmp.Diff(want, dbs); diff != "" {
9394
t.Fatalf("unexpected databases (-want +got):\n%s", diff)

0 commit comments

Comments
 (0)