Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

Commit

Permalink
Cherry-pick sort order fixes from DS-110
Browse files Browse the repository at this point in the history
  • Loading branch information
Stu Hood committed Mar 19, 2012
1 parent a879a86 commit 319f38b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/gizzmo_spec.rb
Expand Up @@ -193,7 +193,7 @@ def nameserver_db

describe "subtree" do
it "prints the tree for a shard" do
results = "localhost/t_0_000_replicating\n 127.0.0.1/t_0_000_b\n localhost/t_0_000_a\n"
results = "localhost/t_0_000_replicating\n localhost/t_0_000_a\n 127.0.0.1/t_0_000_b\n"
gizzmo("subtree localhost/t_0_000_replicating").should == results
gizzmo("subtree localhost/t_0_000_a").should == results
gizzmo("subtree 127.0.0.1/t_0_000_b").should == results
Expand Down Expand Up @@ -721,12 +721,12 @@ def nameserver_db
link(id("localhost", "s_1_0003_replicating"), id("127.0.0.1", "s_1_0003"), 1)]

nameserver_db[:forwardings].should == [forwarding(0, 0, id("localhost", "s_0_0000_replicating")),
forwarding(1, 0, id("localhost", "s_1_0000_replicating")),
forwarding(0, 288230376151711744, id("localhost", "s_0_0003_replicating")),
forwarding(1, 288230376151711744, id("localhost", "s_1_0003_replicating")),
forwarding(0, 576460752303423488, id("localhost", "s_0_0002_replicating")),
forwarding(1, 576460752303423488, id("localhost", "s_1_0002_replicating")),
forwarding(0, 864691128455135232, id("localhost", "s_0_0001_replicating")),
forwarding(1, 0, id("localhost", "s_1_0000_replicating")),
forwarding(1, 288230376151711744, id("localhost", "s_1_0003_replicating")),
forwarding(1, 576460752303423488, id("localhost", "s_1_0002_replicating")),
forwarding(1, 864691128455135232, id("localhost", "s_1_0001_replicating"))]

end
Expand Down

0 comments on commit 319f38b

Please sign in to comment.