Skip to content

Commit

Permalink
Update IT
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Ho <[email protected]>
  • Loading branch information
derek-ho committed Sep 27, 2023
1 parent 767a9cb commit e772fde
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public void createDataSourceAPITest() {
Response response = client().performRequest(createRequest);
Assert.assertEquals(201, response.getStatusLine().getStatusCode());
String createResponseString = getResponseBody(response);
Assert.assertEquals("Created DataSource with name create_prometheus", createResponseString);
Assert.assertEquals("\"Created DataSource with name create_prometheus\"", createResponseString);
// Datasource is not immediately created. so introducing a sleep of 2s.
Thread.sleep(2000);

Expand Down Expand Up @@ -109,7 +109,7 @@ public void updateDataSourceAPITest() {
Response updateResponse = client().performRequest(updateRequest);
Assert.assertEquals(200, updateResponse.getStatusLine().getStatusCode());
String updateResponseString = getResponseBody(updateResponse);
Assert.assertEquals("Updated DataSource with name update_prometheus", updateResponseString);
Assert.assertEquals("\"Updated DataSource with name update_prometheus\"", updateResponseString);

// Datasource is not immediately updated. so introducing a sleep of 2s.
Thread.sleep(2000);
Expand Down

0 comments on commit e772fde

Please sign in to comment.