Fix Filesharing Integ Test
continuous-integration/drone/push Build is pending Details
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
Sarah Jamie Lewis 2021-11-19 15:55:01 -08:00
parent 41dbd6da39
commit 6101e4e031
1 changed files with 4 additions and 4 deletions

View File

@ -52,8 +52,6 @@ func waitForPeerPeerConnection(t *testing.T, peera peer.CwtchPeer, peerb peer.Cw
func TestFileSharing(t *testing.T) {
numGoRoutinesStart := runtime.NumGoroutine()
os.RemoveAll("cwtch.out.png")
os.RemoveAll("cwtch.out.png.manifest")
@ -80,7 +78,10 @@ func TestFileSharing(t *testing.T) {
if err != nil {
t.Fatalf("Could not start Tor: %v", err)
}
acn.WaitTillBootstrapped()
defer acn.Close()
numGoRoutinesStart := runtime.NumGoroutine()
app := app2.NewApp(acn, "./storage")
usr, _ := user.Current()
@ -162,8 +163,7 @@ func TestFileSharing(t *testing.T) {
queueOracle.Shutdown()
app.Shutdown()
acn.Close()
time.Sleep(3 * time.Second)
numGoRoutinesPostACN := runtime.NumGoroutine()
// Printing out the current goroutines