Skip to content

Commit

Permalink
Test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lonelycode committed Sep 14, 2015
1 parent 0ea0add commit b1e649b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gateway_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -821,6 +821,7 @@ func TestWithAnalytics(t *testing.T) {

func TestWithAnalyticsErrorResponse(t *testing.T) {
config.EnableAnalytics = true
config.AnalyticsConfig.PurgeDelay = -1

AnalyticsStore := RedisClusterStorageManager{KeyPrefix: "analytics-"}
log.Info("Setting up analytics DB connection")
Expand Down Expand Up @@ -863,6 +864,7 @@ func TestWithAnalyticsErrorResponse(t *testing.T) {
t.Error("Request failed with 200 code: \n", recorder.Code)
}

time.Sleep(1)
results := analytics.Store.GetKeysAndValues()

if len(results) < 1 {
Expand Down

0 comments on commit b1e649b

Please sign in to comment.