Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add node events #3945

Merged
merged 19 commits into from
Mar 14, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
make check fixes
  • Loading branch information
chelseakomlo authored and dadgar committed Mar 14, 2018
commit 3a1043def921e9e786a94719aa22c72b2c02f668
4 changes: 2 additions & 2 deletions nomad/state/state_store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6494,7 +6494,7 @@ func TestStateStore_AddSingleNodeEvent(t *testing.T) {
Timestamp: time.Now().Unix(),
}
nodeEvents := map[string][]*structs.NodeEvent{
node.ID: []*structs.NodeEvent{nodeEvent},
node.ID: {nodeEvent},
}
err = state.AddNodeEvent(uint64(1001), nodeEvents)
require.Nil(err)
Expand Down Expand Up @@ -6538,7 +6538,7 @@ func TestStateStore_NodeEvents_RetentionWindow(t *testing.T) {
}

nodeEvents := map[string][]*structs.NodeEvent{
out.ID: []*structs.NodeEvent{nodeEvent},
out.ID: {nodeEvent},
}
err := state.AddNodeEvent(uint64(i), nodeEvents)
require.Nil(err)
Expand Down