Skip to content

Commit

Permalink
Http codec in test client switched back to Json (xml fails on mono).
Browse files Browse the repository at this point in the history
  • Loading branch information
kpyatkivskyy committed Nov 12, 2012
1 parent 226a6d4 commit b5c2eab
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ private void WriteFlood(CommandProcessorContext context, string eventStreamId, i
"DATA" + new string('*', 256), "DATA" + new string('*', 256),
"METADATA" + new string('$', 100)) "METADATA" + new string('$', 100))
}); });
var requestString = Codec.Xml.To(write); var requestString = Codec.Json.To(write);
client.Post(url, requestString, Codec.Xml.ContentType, succHandler, exc => client.Post(url, requestString, Codec.Json.ContentType, succHandler, exc =>
{ {
context.Log.ErrorException(exc, "Error during POST."); context.Log.ErrorException(exc, "Error during POST.");
Interlocked.Increment(ref fail); Interlocked.Increment(ref fail);
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -124,10 +124,10 @@ private void WriteFlood(CommandProcessorContext context, int clientsCnt, int req
"DATA" + new string('*', 256), "DATA" + new string('*', 256),
"METADATA" + new string('$', 100)) "METADATA" + new string('$', 100))
}); });
var request = Codec.Xml.To(write); var request = Codec.Json.To(write);
client.Post(url, client.Post(url,
request, request,
Codec.Xml.ContentType, Codec.Json.ContentType,
succHandler, succHandler,
exc => exc =>
{ {
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -192,10 +192,10 @@ private void Flood(CommandProcessorContext context,
"DATA" + dataResultingSize.ToString(" 00000 ") + new string('*', dataResultingSize), "DATA" + dataResultingSize.ToString(" 00000 ") + new string('*', dataResultingSize),
"METADATA" + new string('$', 100)) "METADATA" + new string('$', 100))
}); });
var request = Codec.Xml.To(write); var request = Codec.Json.To(write);
client.Post(url, client.Post(url,
request, request,
Codec.Xml.ContentType, Codec.Json.ContentType,
succHandler, succHandler,
exc => exc =>
{ {
Expand Down

0 comments on commit b5c2eab

Please sign in to comment.