bats: Convert encoding to utf-8 unix.

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi 2015-03-03 17:34:42 -08:00
parent fa22dbf6a6
commit 998cc63f78
2 changed files with 25 additions and 25 deletions

View File

@ -1,15 +1,15 @@
#!/usr/bin/env bats
load vars
@test "managing non-available node should be timed out" {
#
# timeout does not accept a bash function, so hard-coded path is required
#
run timeout 15s $GOBIN/swarm manage -H 127.0.0.1:2375 nodes://8.8.8.8:2375
[ "$status" -ne 0 ]
[[ ${lines[0]} =~ "Listening for HTTP" ]]
[[ ${lines[1]} =~ "ConnectEx tcp: i/o timeout" ]]
}
#!/usr/bin/env bats
load vars
@test "managing non-available node should be timed out" {
#
# timeout does not accept a bash function, so hard-coded path is required
#
run timeout 15s $GOBIN/swarm manage -H 127.0.0.1:2375 nodes://8.8.8.8:2375
[ "$status" -ne 0 ]
[[ ${lines[0]} =~ "Listening for HTTP" ]]
[[ ${lines[1]} =~ "ConnectEx tcp: i/o timeout" ]]
}

View File

@ -1,10 +1,10 @@
#!/usr/bin/env bats
load vars
@test "version string should contain a proper number with git commit" {
run swarm -v
[ "$status" -eq 0 ]
[[ ${lines[0]} =~ version\ [0-9]+\.[0-9]+\.[0-9]+\ \([0-9a-f]{7}\)$ ]]
}
#!/usr/bin/env bats
load vars
@test "version string should contain a proper number with git commit" {
run swarm -v
[ "$status" -eq 0 ]
[[ ${lines[0]} =~ version\ [0-9]+\.[0-9]+\.[0-9]+\ \([0-9a-f]{7}\)$ ]]
}