Skip to content

Commit 165cd09

Browse files
authored
Merge pull request #276 from linode/bugfix/more-durable-tests
bug: Make tests more durable
2 parents 7140329 + 3954e07 commit 165cd09

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

test/volumes/list-view-update-volumes.bats

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ load '../common'
1212
setup() {
1313
suiteName="list-view-update-volumes"
1414
setToken "$suiteName"
15-
export volume_id=$(linode-cli volumes list --text --no-headers --delimiter="," --format="id")
15+
# we only want a single volume id, so if there are more volumes on the account, just look at the first one
16+
export volume_id=$(linode-cli volumes list --text --no-headers --delimiter="," --format="id" | head -n1)
1617
}
1718

1819
teardown() {
@@ -24,10 +25,6 @@ teardown() {
2425
fi
2526
}
2627

27-
@test "remove volumes prior to tests" {
28-
run removeVolumes
29-
}
30-
3128
@test "it should list volumes" {
3229
run createVolume
3330
run linode-cli volumes list \

0 commit comments

Comments
 (0)