From c113b70fee7b93d1ad182bf8c0fbc8c487518f14 Mon Sep 17 00:00:00 2001 From: GitBluub Date: Wed, 15 Nov 2023 13:47:42 +0100 Subject: [PATCH] fix: scoro test maybe --- scorometer/tests/runner.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scorometer/tests/runner.sh b/scorometer/tests/runner.sh index 3879013..bc75fca 100755 --- a/scorometer/tests/runner.sh +++ b/scorometer/tests/runner.sh @@ -1,5 +1,5 @@ #!/bin/bash -TOKEN=$(curl localhost:3000/auth/guest -X POST | jq '.access_token') +TOKEN=$(curl localhost:3000/auth/guest -X POST | jq -r '.access_token') EMPTY_DB=$(curl localhost:3000/song/1 -s -H "Authorization: Bearer $TOKEN" | jq '.statusCode == 404') if [[ $EMPTY_DB == "true" ]]; then curl localhost:3000/song -H "Authorization: Bearer $TOKEN" -X POST --data '{"name": "SCORO_TEST", "difficulties": {}, "midiPath": "/assets/musics/SCORO_TEST/SCORO_TEST.midi", "musicXmlPath": "/assets/musics/SCORO_TEST/SCORO_TEST.mxl"}' -H "Content-Type: application/json" &> /dev/null