Change order of fixtures

This commit is contained in:
William Tisäter 2014-07-23 10:34:03 +02:00
parent 9dc67edf7f
commit 31037338a3
1 changed files with 3 additions and 3 deletions

View File

@ -220,13 +220,13 @@ func TestCatalogListNodes(t *testing.T) {
})
// Server node is auto added from Serf
if out.Nodes[0].Node != s1.config.NodeName {
if out.Nodes[1].Node != s1.config.NodeName {
t.Fatalf("bad: %v", out)
}
if out.Nodes[1].Node != "foo" {
if out.Nodes[0].Node != "foo" {
t.Fatalf("bad: %v", out)
}
if out.Nodes[1].Address != "127.0.0.1" {
if out.Nodes[0].Address != "127.0.0.1" {
t.Fatalf("bad: %v", out)
}
}