Skip to content

Commit

Permalink
Removed unnecissary reset_project
Browse files Browse the repository at this point in the history
  • Loading branch information
Boppy committed Jul 13, 2023
1 parent 2acb001 commit 3490f99
Show file tree
Hide file tree
Showing 22 changed files with 0 additions and 34 deletions.
2 changes: 0 additions & 2 deletions test/tests/cancel-reducer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ set -euox pipefail

source "./test/lib.include"

reset_project

cat > "${PROJECT_PATH}/src/lib.rs" << EOF
use spacetimedb::{println, spacetimedb, ScheduleToken};
Expand Down
2 changes: 0 additions & 2 deletions test/tests/default-module-clippy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,5 @@ set -euox pipefail

source "./test/lib.include"

reset_project

cd "$PROJECT_PATH"
run_test cargo clippy -- -D warnings
2 changes: 0 additions & 2 deletions test/tests/detect-wasm-bindgen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ set -euox pipefail

source "./test/lib.include"

reset_project

cat > "${PROJECT_PATH}/src/lib.rs" << EOF
use spacetimedb::{log, spacetimedb};
Expand Down
2 changes: 0 additions & 2 deletions test/tests/filtering.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ set -euox pipefail

source "./test/lib.include"

reset_project

cat > "${PROJECT_PATH}/src/lib.rs" << EOF
use spacetimedb::{println, spacetimedb, Identity};
Expand Down
2 changes: 0 additions & 2 deletions test/tests/module-nested-op.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ set -euox pipefail

source "./test/lib.include"

reset_project

cat > "${PROJECT_PATH}/src/lib.rs" << EOF
use spacetimedb::{println, spacetimedb};
Expand Down
1 change: 0 additions & 1 deletion test/tests/namespace-custom-cs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ source "./test/lib.include"
TMP_DIR=$(mktemp -d)
NAMESPACE=$(random_string)

reset_project
run_test cargo run generate --out-dir "${TMP_DIR}" --lang cs --namespace "${NAMESPACE}" --project-path "${PROJECT_PATH}"

LINES="$(grep -r -o "namespace ${NAMESPACE}" "${TMP_DIR}" | wc -l | tr -d ' ')"
Expand Down
1 change: 0 additions & 1 deletion test/tests/namespace-spacetimedb-cs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ source "./test/lib.include"
TMP_DIR=$(mktemp -d)
NAMESPACE=SpacetimeDB

reset_project
run_test cargo run generate --out-dir "${TMP_DIR}" --lang cs --project-path "${PROJECT_PATH}"

LINES="$(grep -r -o "namespace ${NAMESPACE}" "${TMP_DIR}" | wc -l | tr -d ' ')"
Expand Down
1 change: 0 additions & 1 deletion test/tests/new-user-flow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ set -euox pipefail
source "./test/lib.include"

## Create a new spacetimedb rust project
reset_project
cargo run identity new --no-email

## Write a spacetimedb rust module
Expand Down
2 changes: 0 additions & 2 deletions test/tests/panic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ set -euox pipefail

source "./test/lib.include"

reset_project

cat > "${PROJECT_PATH}/src/lib.rs" << EOF
use spacetimedb::{spacetimedb, println};
use std::cell::RefCell;
Expand Down
1 change: 0 additions & 1 deletion test/tests/permissions-call.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ source "./test/lib.include"
run_test cargo run identity new --no-email
IDENT=$(grep IDENTITY "$TEST_OUT" | awk '{print $2}')
TOKEN="$(cargo run identity token "$IDENT")"
reset_project
run_test cargo run publish -s -d --project-path "$PROJECT_PATH" --clear-database
sleep 2
DATABASE="$(grep "reated new database" "$TEST_OUT" | awk 'NF>1{print $NF}')"
Expand Down
1 change: 0 additions & 1 deletion test/tests/permissions-describe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ set -euox pipefail
source "./test/lib.include"

run_test cargo run identity new --no-email
reset_project
run_test cargo run publish -s -d --project-path "$PROJECT_PATH" --clear-database
sleep 2
DATABASE="$(grep "reated new database" "$TEST_OUT" | awk 'NF>1{print $NF}')"
Expand Down
1 change: 0 additions & 1 deletion test/tests/permissions-logs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ set -euox pipefail
source "./test/lib.include"

run_test cargo run identity new --no-email
reset_project
run_test cargo run publish -s -d --project-path "$PROJECT_PATH" --clear-database
sleep 2
DATABASE="$(grep "reated new database" "$TEST_OUT" | awk 'NF>1{print $NF}')"
Expand Down
1 change: 0 additions & 1 deletion test/tests/permissions-publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ set -euox pipefail

source "./test/lib.include"

reset_project
run_test cargo run identity new --no-email
IDENT=$(grep IDENTITY "$TEST_OUT" | awk '{print $2}')
run_test cargo run identity set-default "$IDENT"
Expand Down
1 change: 0 additions & 1 deletion test/tests/register-domain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ set -euox pipefail

source "./test/lib.include"
RAND_DOMAIN=$(random_string)
reset_project


run_test cargo run identity new --no-email
Expand Down
2 changes: 0 additions & 2 deletions test/tests/reverse-dns.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ set -euox pipefail

source "./test/lib.include"

reset_project

RAND=$(random_string)
run_test cargo run dns register-tld "$RAND"
run_test cargo run publish -s -d "$RAND" --project-path "$PROJECT_PATH" --clear-database
Expand Down
1 change: 0 additions & 1 deletion test/tests/setname.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ source "./test/lib.include"

reset_config
run_test cargo run identity init-default
reset_project
run_test cargo run publish -s -d --project-path "$PROJECT_PATH" --clear-database
ADDRESS="$(grep "reated new database" "$TEST_OUT" | awk 'NF>1{print $NF}')"

Expand Down
1 change: 0 additions & 1 deletion test/tests/sql-format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ set -euox pipefail

source "./test/lib.include"

reset_project
cat > "${PROJECT_PATH}/src/lib.rs" <<EOF
use spacetimedb::{spacetimedb, Identity};
Expand Down
2 changes: 0 additions & 2 deletions test/tests/update-module.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ set -euox pipefail

source "./test/lib.include"

reset_project

cat > "${PROJECT_PATH}/src/lib.rs" << EOF
use spacetimedb::{println, spacetimedb};
Expand Down
2 changes: 0 additions & 2 deletions test/tests/upload-module-1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ set -euox pipefail

source "./test/lib.include"

reset_project

cat > "${PROJECT_PATH}/src/lib.rs" << EOF
use spacetimedb::{println, spacetimedb};
Expand Down
2 changes: 0 additions & 2 deletions test/tests/zz_docker-restart-module.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ set -euox pipefail

source "./test/lib.include"

reset_project

cat > "${PROJECT_PATH}/src/lib.rs" << EOF
use spacetimedb::{println, spacetimedb};
Expand Down
2 changes: 0 additions & 2 deletions test/tests/zz_docker-restart-repeating-reducer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ set -euox pipefail

source "./test/lib.include"

reset_project

cat > "${PROJECT_PATH}/src/lib.rs" << EOF
use spacetimedb::{println, spacetimedb, Timestamp};
Expand Down
2 changes: 0 additions & 2 deletions test/tests/zz_docker-restart-sql.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ set -euox pipefail

source "./test/lib.include"

reset_project

cat > "${PROJECT_PATH}/src/lib.rs" << EOF
use spacetimedb::{println, spacetimedb};
Expand Down

0 comments on commit 3490f99

Please sign in to comment.