@@ -39,7 +39,7 @@ public void start() throws IOException {
39
39
.project (this .visualRegressionTrackerConfig .getProject ())
40
40
.build ();
41
41
42
- RequestBody body = RequestBody .create (gson .toJson (newBuild ), JSON );
42
+ RequestBody body = RequestBody .create (JSON , gson .toJson (newBuild ));
43
43
44
44
Request request = new Request .Builder ()
45
45
.url (this .visualRegressionTrackerConfig .getApiUrl ().concat ("/builds" ))
@@ -77,7 +77,7 @@ public void stop() throws IOException {
77
77
Request request = new Request .Builder ()
78
78
.url (this .visualRegressionTrackerConfig .getApiUrl ().concat ("/builds/" ).concat (this .buildId ))
79
79
.addHeader (apiKeyHeaderName , this .visualRegressionTrackerConfig .getApiKey ())
80
- .patch (RequestBody .create ("" , JSON ))
80
+ .patch (RequestBody .create (JSON , "" ))
81
81
.build ();
82
82
83
83
client .newCall (request ).execute ();
@@ -101,7 +101,7 @@ protected TestRunResponse submitTestRun(String name, String imageBase64, TestRun
101
101
.diffTollerancePercent (testRunOptions .getDiffTollerancePercent ())
102
102
.build ();
103
103
104
- RequestBody body = RequestBody .create (gson .toJson (newTestRun ), JSON );
104
+ RequestBody body = RequestBody .create (JSON , gson .toJson (newTestRun ));
105
105
106
106
Request request = new Request .Builder ()
107
107
.url (this .visualRegressionTrackerConfig .getApiUrl ().concat ("/test-runs" ))
0 commit comments