Skip to content

Commit

Permalink
add little sleep to make clients and server serve complete in http_tr…
Browse files Browse the repository at this point in the history
…ansport_test.go
  • Loading branch information
mrpalide committed Dec 26, 2022
1 parent f6cd97b commit 1945b17
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/dmsghttp/http_transport_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"
"net/http"
"testing"
"time"

"github.com/sirupsen/logrus"
"github.com/skycoin/skywire-utilities/pkg/cipher"
Expand Down Expand Up @@ -61,7 +62,7 @@ func TestHTTPTransport_RoundTrip(t *testing.T) {
require.NoError(t, err)
startHTTPServer(t, server0Results, lis)
addr := lis.Addr().String()

time.Sleep(5 * time.Second)
log := logging.MustGetLogger("http_client")
ctx, cancel := cmdutil.SignalContext(context.Background(), log)
defer cancel()
Expand Down

0 comments on commit 1945b17

Please sign in to comment.