Skip to content

Commit

Permalink
fix assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
eladb committed Mar 21, 2024
1 parent 53f4835 commit fc13483
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion containers/local-build.test.w
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
bring "./workload.w" as containers;
bring http;
bring expect;

let app = new containers.Workload(
name: "my-app",
Expand All @@ -10,5 +11,5 @@ let app = new containers.Workload(

test "can access container" {
let response = http.get("{app.publicUrl!}");
assert(response.body == "Hello, Wingnuts!");
expect.equal(response.body, "Hello, Wingnuts!");
}
3 changes: 2 additions & 1 deletion containers/simple.test.w
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
bring cloud;
bring http;
bring "./workload.w" as containers;
bring expect;

let app = new containers.Workload(
name: "http-echo",
Expand All @@ -18,6 +19,6 @@ new cloud.Function(inflight () => {
test "http get" {
if let url = app.publicUrl {
let response = http.get(url);
assert(response.body.contains("bang_bang"));
expect.equal("bang_bang\n", response.body);
}
}

0 comments on commit fc13483

Please sign in to comment.