Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit b5c2eab762165f7ce9e0b5b81a72f01ab2604b39 1 parent 226a6d4
@kpyatkivskyy kpyatkivskyy authored
View
4 src/EventStore/EventStore.TestClient/Commands/WriteFloodHttpProcessor.cs
@@ -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);
View
4 src/EventStore/EventStore.TestClient/Commands/WriteFloodWaitingHttpProcessor.cs
@@ -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 =>
{
View
4 src/EventStore/EventStore.TestClient/Commands/WriteLongTermHttpProcessor.cs
@@ -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 =>
{
Please sign in to comment.
Something went wrong with that request. Please try again.