Skip to content

Commit

Permalink
Add workaround to the demo to fix CI for now
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg-nenashev committed Sep 24, 2023
1 parent 8661149 commit 006c268
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions demo/wiremock/wiremock_demo.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ int main() {

printf("Creating new container: %s\n", DEFAULT_WIREMOCK_IMAGE);
int requestId = tc_wm_new_default_container();
//FIXME: This method is bogus
tc_wm_with_mapping(requestId, "test_data/hello.json", "hello");

//tc_with_file(requestId, "test_data/hello.json", "/home/wiremock/mappings/hello.json");
tc_with_file(requestId, "test_data/hello.json", "/home/wiremock/mappings/hello2.json");
struct tc_run_container_return ret = tc_run_container(requestId);
int containerId = ret.r0;
if (!ret.r1) {
Expand Down
2 changes: 1 addition & 1 deletion modules/wiremock/impl.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ void tc_wm_with_mapping(GoInt requestID, char* filePath, char* destination) {
strcat(dest_file, ".json");
}

printf("DEBUG: %s to %s\n", filePath, dest_file);
printf("DEBUG: %s to %s.\n", filePath, dest_file);
tc_with_file(requestID, filePath, dest_file);
};

Expand Down
2 changes: 1 addition & 1 deletion testcontainers-c/testcontainers-c.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func _RunContainer(requestID int) (id int, ok bool, err error) {
container, err := testcontainers.GenericContainer(ctx, genericContainerReq)
containerId := -1
if container != nil {
// We register the container even if it failed
// We register the container even if the run failed
containers = append(containers, &container)
containerId = len(containers) - 1
}
Expand Down

0 comments on commit 006c268

Please sign in to comment.