Skip to content

Commit

Permalink
fix(test): test for concurrency not instances
Browse files Browse the repository at this point in the history
Signed-off-by: Brooks Townsend <[email protected]>
  • Loading branch information
brooksmtownsend committed Jan 12, 2024
1 parent e5a4028 commit 12805a1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 5 additions & 1 deletion tests/command_worker_integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,13 @@ async fn test_commands() {
);
assert_eq!(
inventory[0].instances.len(),
2,
1,
"Should have started the correct number of actors"
);
assert_eq!(
inventory[0].instances[0].max_concurrent, 2,
"Should have started the actor with correct concurrency"
);
assert_eq!(
inventory[0].instances[0]
.annotations
Expand Down
8 changes: 4 additions & 4 deletions tests/event_consumer_integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ use anyhow::Result;
const HTTP_SERVER_REFERENCE: &str = "wasmcloud.azurecr.io/httpserver:0.17.0";
const ECHO_REFERENCE: &str = "wasmcloud.azurecr.io/echo:0.3.4";
const CONTRACT_ID: &str = "wasmcloud:httpserver";
const LINK_NAME: &str = "default";
const WASMBUS_EVENT_TOPIC: &str = "wasmbus.evt.default";
const STREAM_NAME: &str = "test_wadm_events";

Expand Down Expand Up @@ -207,10 +206,10 @@ async fn test_event_stream() -> Result<()> {
helpers::run_wash_command([
"stop",
"provider",
&host_id,
HTTP_SERVER_PROVIDER_ID,
LINK_NAME,
CONTRACT_ID,
"--host-id",
&host_id,
"--ctl-port",
&ctl_port,
])
Expand All @@ -232,8 +231,9 @@ async fn test_event_stream() -> Result<()> {
helpers::run_wash_command([
"stop",
"actor",
&host_id,
ECHO_ACTOR_ID,
"--host-id",
&host_id,
"--ctl-port",
&ctl_port,
])
Expand Down

0 comments on commit 12805a1

Please sign in to comment.