Permalink
Browse files

Http codec in test client switched back to Json (xml fails on mono).

  • Loading branch information...
1 parent 226a6d4 commit b5c2eab762165f7ce9e0b5b81a72f01ab2604b39 @kpyatkivskyy kpyatkivskyy committed Nov 12, 2012
@@ -128,8 +128,8 @@ private void WriteFlood(CommandProcessorContext context, string eventStreamId, i
"DATA" + new string('*', 256),
"METADATA" + new string('$', 100))
});
- var requestString = Codec.Xml.To(write);
- client.Post(url, requestString, Codec.Xml.ContentType, succHandler, exc =>
+ var requestString = Codec.Json.To(write);
+ client.Post(url, requestString, Codec.Json.ContentType, succHandler, exc =>
{
context.Log.ErrorException(exc, "Error during POST.");
Interlocked.Increment(ref fail);
@@ -124,10 +124,10 @@ private void WriteFlood(CommandProcessorContext context, int clientsCnt, int req
"DATA" + new string('*', 256),
"METADATA" + new string('$', 100))
});
- var request = Codec.Xml.To(write);
+ var request = Codec.Json.To(write);
client.Post(url,
request,
- Codec.Xml.ContentType,
+ Codec.Json.ContentType,
succHandler,
exc =>
{
@@ -192,10 +192,10 @@ public bool Execute(CommandProcessorContext context, string[] args)
"DATA" + dataResultingSize.ToString(" 00000 ") + new string('*', dataResultingSize),
"METADATA" + new string('$', 100))
});
- var request = Codec.Xml.To(write);
+ var request = Codec.Json.To(write);
client.Post(url,
request,
- Codec.Xml.ContentType,
+ Codec.Json.ContentType,
succHandler,
exc =>
{

0 comments on commit b5c2eab

Please sign in to comment.