Parcourir la source

fix failing test (#77)

pmalhaire il y a 2 ans
Parent
commit
9247d59a98
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      session_test.go

+ 1 - 1
session_test.go

@@ -543,7 +543,6 @@ func TestSendData_Large(t *testing.T) {
 			t.Fatalf("err: %v", err)
 		}
 	}()
-
 	doneCh := make(chan struct{})
 	go func() {
 		wg.Wait()
@@ -551,6 +550,7 @@ func TestSendData_Large(t *testing.T) {
 	}()
 	select {
 	case <-doneCh:
+		return
 	case <-time.After(5 * time.Second):
 		panic("timeout")
 	}