Skip to content

Commit

Permalink
fixed for new instance id handling
Browse files Browse the repository at this point in the history
  • Loading branch information
myleshorton committed Oct 21, 2015
1 parent a7aa297 commit d209497
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@ import (
"time"

"github.com/getlantern/testify/assert"

"github.com/getlantern/flashlight/globals"
)

func TestAll(t *testing.T) {
globals.InstanceId = "testinstance"
id := "testinstance"

// Set up fake statshub
reportCh := make(chan report)
Expand All @@ -28,7 +26,7 @@ func TestAll(t *testing.T) {
reportCh <- r
}()
return nil
})
}, id)
if err != nil {
t.Fatalf("Unable to configure statreporter: %s", err)
}
Expand All @@ -54,7 +52,7 @@ func TestAll(t *testing.T) {
reportCh <- r
}()
return nil
})
}, id)
if err != nil {
t.Fatalf("Unable to reconfigure reporting: %v", err)
}
Expand Down

0 comments on commit d209497

Please sign in to comment.