Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Changed: cleanup invalid test statements

  • Loading branch information...
commit be60ac56d16434ad42b5940f3f7bf4f2c8e25b3e 1 parent 90c03da
@ysw ysw authored
View
4 .../EventStore.Projections.Core.Tests/ClientAPI/event_by_type_index/when_revering_after_index_catches_up.cs
@@ -75,8 +75,8 @@ protected override void When()
[Test, Category("Network")]
public void receives_deleted_notification()
{
- AssertStreamTail(
- "$projections-test-projection-stream1-result", "Result:{\"a\":1}", "Result:{\"a\":1,\"deleted\":1}");
+ AssertStreamTail("$projections-test-projection-stream1-result", "Result:{\"a\":1}", "Result:{\"a\":2}");
+ AssertStreamTail("$projections-test-projection-stream2-result", "Result:{\"a\":1}", "Result:{\"a\":2}");
}
}
}
View
6 ....Tests/ClientAPI/when_handling_delete/with_from_all_foreach_projection_running_and_events_are_indexed.cs
@@ -41,8 +41,8 @@ protected override void When()
PostProjection(@"
fromAll().foreachStream().when({
$init: function(){return {}},
- type1: function(s,e){s.a=1},
- type2: function(s,e){s.a=1},
+ type1: function(s,e){s.a=(s.a||0) + 1},
+ type2: function(s,e){s.a=(s.a||0) + 1},
$deleted: function(s,e){s.deleted=1},
}).outputState();
");
@@ -55,7 +55,7 @@ public void receives_deleted_notification()
AssertStreamTail(
"$projections-test-projection-stream1-result", "Result:{\"deleted\":1}");
AssertStreamTail(
- "$projections-test-projection-stream2-result", "Result:{\"deleted\":1}");
+ "$projections-test-projection-stream2-result", "Result:{\"a\":2}");
}
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.