Rod Hynes 5 bulan lalu
induk
melakukan
fc58a930a6
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      psiphon/server/server_test.go

+ 2 - 2
psiphon/server/server_test.go

@@ -1398,7 +1398,7 @@ func runServer(t *testing.T, runConfig *runServerConfig) {
 
 
 		socketReader.Start()
 		socketReader.Start()
 		readerShutdownCtx, readerShutdownCtxCancel :=
 		readerShutdownCtx, readerShutdownCtxCancel :=
-			context.WithDeadline(context.Background(), time.Now().Add(5 * time.Second))
+			context.WithDeadline(context.Background(), time.Now().Add(5*time.Second))
 		defer func() {
 		defer func() {
 			readerShutdownCtxCancel()
 			readerShutdownCtxCancel()
 			socketReader.Stop(readerShutdownCtx)
 			socketReader.Stop(readerShutdownCtx)
@@ -2215,7 +2215,7 @@ func runServer(t *testing.T, runConfig *runServerConfig) {
 	if runConfig.doLogProtobuf {
 	if runConfig.doLogProtobuf {
 		// Ensure logs are drained on the reader side.
 		// Ensure logs are drained on the reader side.
 		readerShutdownCtx, readerShutdownCtxCancel :=
 		readerShutdownCtx, readerShutdownCtxCancel :=
-			context.WithDeadline(context.Background(), time.Now().Add(5 * time.Second))
+			context.WithDeadline(context.Background(), time.Now().Add(5*time.Second))
 		defer readerShutdownCtxCancel()
 		defer readerShutdownCtxCancel()
 		socketReader.Stop(readerShutdownCtx)
 		socketReader.Stop(readerShutdownCtx)
 	}
 	}