Skip to content

Commit

Permalink
Updated test
Browse files Browse the repository at this point in the history
  • Loading branch information
Boppy committed Jul 13, 2023
1 parent ae2668b commit cab26d8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/tests/spacetime-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ set -euox pipefail

source "./test/lib.include"

run_test cargo run server "https://spacetimedb.com/spacetimedb"
run_test cargo run server set "https://spacetimedb.com/spacetimedb"
[ "$(grep Host "$TEST_OUT")" == "Host: spacetimedb.com/spacetimedb" ]
[ "$(grep Protocol "$TEST_OUT")" == "Protocol: https" ]
[ "$(grep host $HOME/.spacetime/config.toml)" == "host = 'spacetimedb.com/spacetimedb'" ]
[ "$(grep protocol $HOME/.spacetime/config.toml)" == "protocol = 'https'" ]

run_test cargo run server "http://127.0.0.1:3000/spacetimedb"
run_test cargo run server set "http://127.0.0.1:3000/spacetimedb"
[ "$(grep Host "$TEST_OUT")" == "Host: 127.0.0.1:3000/spacetimedb" ]
[ "$(grep Protocol "$TEST_OUT")" == "Protocol: http" ]
[ "$(grep host $HOME/.spacetime/config.toml)" == "host = '127.0.0.1:3000/spacetimedb'" ]
[ "$(grep protocol $HOME/.spacetime/config.toml)" == "protocol = 'http'" ]

run_test cargo run server "http://127.0.0.1"
run_test cargo run server set "http://127.0.0.1"
[ "$(grep Host "$TEST_OUT")" == "Host: 127.0.0.1" ]
[ "$(grep Protocol "$TEST_OUT")" == "Protocol: http" ]
[ "$(grep host $HOME/.spacetime/config.toml)" == "host = '127.0.0.1'" ]
Expand Down

0 comments on commit cab26d8

Please sign in to comment.