Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Castell committed Apr 25, 2019
1 parent 2cfcce1 commit 007d6b0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dkron/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func setupAPITest(t *testing.T) (a *Agent) {
time.Sleep(1 * time.Second)

// clean up the keyspace to ensure clean runs
a.Store.Client.DeleteTree("dkron-test")
a.Store.Client().DeleteTree("dkron-test")

return
}
Expand Down
2 changes: 1 addition & 1 deletion dkron/grpc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func TestGRPCExecutionDone(t *testing.T) {
viper.Reset()

// Cleanup everything
err := store.Client.DeleteTree("dkron")
err := store.Client().DeleteTree("dkron")
if err != nil {
t.Logf("error cleaning up: %s", err)
}
Expand Down
2 changes: 1 addition & 1 deletion dkron/job_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func TestJobGetParent(t *testing.T) {
store.agent = a

// Cleanup everything
err := store.Client.DeleteTree("dkron-test")
err := store.Client().DeleteTree("dkron-test")
if err != nil && err != s.ErrKeyNotFound {
t.Logf("error cleaning up: %s", err)
}
Expand Down
2 changes: 1 addition & 1 deletion dkron/store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ func createTestStore() *Store {
}

func cleanTestKVSpace(s *Store) error {
err := s.Client.DeleteTree("dkron-test")
err := s.Client().DeleteTree("dkron-test")
if err != nil && err != store.ErrKeyNotFound {
return err
}
Expand Down

0 comments on commit 007d6b0

Please sign in to comment.