Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Commit

Permalink
fix some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eladb committed Nov 3, 2023
1 parent aec6078 commit 3f8d5be
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 15 deletions.
2 changes: 1 addition & 1 deletion test/local-build.test.w
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ let app = new containers.Workload(
);

test "can access container" {
let response = http.get("${app.url()}");
let response = http.get("${app.publicUrl}");
if let body = response.body {
log(body);
}
Expand Down
11 changes: 7 additions & 4 deletions test/microservices.test.w
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
bring "../containers.w" as containers;
bring cloud;
bring http;
bring expect;

let producer = new containers.Workload(
name: "producer",
Expand All @@ -18,11 +19,13 @@ let consumer = new containers.Workload(
}
) as "consumer";

new cloud.Function(inflight () => {
if let url = consumer.url() {
test "send request" {
if let url = consumer.publicUrl {
log("get ${url}...");
if let body = http.get(url).body {
log(body);
expect.equal(body, Json.stringify({ producer_result: { result: 12 } }));
} else {
assert(false);
}
}
}) as "send request";
}
4 changes: 0 additions & 4 deletions test/util.test.w

This file was deleted.

6 changes: 0 additions & 6 deletions test/values.test.w

This file was deleted.

0 comments on commit 3f8d5be

Please sign in to comment.