Skip to content

Commit

Permalink
added failing test back in
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Gardham-Pallister committed Apr 3, 2017
1 parent 03850fa commit 59379aa
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 17 deletions.
34 changes: 17 additions & 17 deletions test/Rafty.AcceptanceTests/AcceptanceTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,23 +136,23 @@ public void after_leader_is_elected_should_persist_command_to_all_servers_more_t
[Fact]
public void after_leader_is_elected_should_persist_different_commands_to_all_servers()
{
// var remoteServers = new List<string>
// {
// "http://localhost:5231",
// "http://localhost:5232",
// "http://localhost:5233",
// "http://localhost:5234",
// "http://localhost:5235",
// };

// this.Given(x => _s.GivenTheFollowingServersAreRunning(remoteServers))
// .And(x => _s.ThenANewLeaderIsElected())
// .And(x => _s.ThenTheOtherNodesAreFollowers(4))
// .When(x => _s.AFakeCommandIsSentToTheLeader())
// .Then(x => _s.ThenTheFakeCommandIsPersistedToAllStateMachines(0, 5))
// .When(x => _s.AFakeCommandTwoIsSentToTheLeader())
// .Then(x => _s.ThenTheFakeCommandTwoIsPersistedToAllStateMachines(1, 5))
// .BDDfy();
var remoteServers = new List<string>
{
"http://localhost:5231",
"http://localhost:5232",
"http://localhost:5233",
"http://localhost:5234",
"http://localhost:5235",
};

this.Given(x => _s.GivenTheFollowingServersAreRunning(remoteServers))
.And(x => _s.ThenANewLeaderIsElected())
.And(x => _s.ThenTheOtherNodesAreFollowers(4))
.When(x => _s.AFakeCommandIsSentToTheLeader())
.Then(x => _s.ThenTheFakeCommandIsPersistedToAllStateMachines(0, 5))
.When(x => _s.AFakeCommandTwoIsSentToTheLeader())
.Then(x => _s.ThenTheFakeCommandTwoIsPersistedToAllStateMachines(1, 5))
.BDDfy();
}

[Fact]
Expand Down
10 changes: 10 additions & 0 deletions test/Rafty.AcceptanceTests/AcceptanceTestsSteps.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,16 @@ public void ThenTheOtherNodesAreFollowers(int expected)
fourFollowers.ShouldBeTrue();
}

internal void ThenTheFakeCommandTwoIsPersistedToAllStateMachines(int v1, int v2)
{
throw new NotImplementedException();
}

internal void AFakeCommandTwoIsSentToTheLeader()
{
throw new NotImplementedException();
}

public void ThenANewLeaderIsElected()
{
var stopWatch = Stopwatch.StartNew();
Expand Down

0 comments on commit 59379aa

Please sign in to comment.