Skip to content

Commit

Permalink
#39 Fixed tests for log output
Browse files Browse the repository at this point in the history
Should look before I leap..
  • Loading branch information
Geoff Green committed Jan 19, 2014
1 parent 8a53bbf commit 4f5e64a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Procon.Core.Test/Events/TestEvents.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ public class TestEvents {
events.WriteEvents();

String logFileName = events.EventsLogFileName(roundedThenHour);

var logEvent = JsonConvert.DeserializeObject<GenericEvent>(File.ReadAllText(logFileName));
var logEvent = JsonConvert.DeserializeObject<GenericEvent>(File.ReadAllText(logFileName).Trim(',', '\r', '\n'));

Assert.IsTrue(logEvent.Success);
Assert.AreEqual("SecurityGroupAdded", logEvent.Name);
Expand Down Expand Up @@ -160,7 +160,7 @@ public class TestEvents {

String logFileName = events.EventsLogFileName(roundedThenHour);

var logEvent = JsonConvert.DeserializeObject<GenericEvent>(File.ReadAllText(logFileName));
var logEvent = JsonConvert.DeserializeObject<GenericEvent>(File.ReadAllText(logFileName).Trim(',', '\r', '\n'));

Assert.IsTrue(logEvent.Success);
Assert.AreEqual("SecurityGroupAdded", logEvent.Name);
Expand Down Expand Up @@ -216,7 +216,7 @@ public class TestEvents {



var logEvent = JsonConvert.DeserializeObject<GenericEvent>(File.ReadAllText(logFileName));
var logEvent = JsonConvert.DeserializeObject<GenericEvent>(File.ReadAllText(logFileName).Trim(',', '\r', '\n'));

Assert.IsTrue(logEvent.Success);
Assert.AreEqual("SecurityGroupAdded", logEvent.Name);
Expand Down

0 comments on commit 4f5e64a

Please sign in to comment.