Explorar el Código

fix failing test (#77)

pmalhaire hace 2 años
padre
commit
9247d59a98
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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")
 	}