This commit is contained in:
Kashif Mustahsan 2020-01-07 13:41:01 -08:00
Родитель c07ee2ca08
Коммит 83f7df70e5
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -125,7 +125,7 @@ teardown(){
enable_count="$(echo "$output" | grep -c 'event=enabled')"
echo "Enable count=$enable_count"
[ "$enable_count" -eq 1 ]
[[ "$output" == *"this script configuration is already processed, will not run again"* ]] # not processed again
[[ "$output" == *"the script configuration has already been processed, will not run again"* ]] # not processed again
}
@test "handler command: enable - parses protected settings" {

Просмотреть файл

@ -40,7 +40,7 @@ func Test_checkAndSaveSeqNum_fails(t *testing.T) {
// pass in invalid seqnum format
_, err := checkAndSaveSeqNum(log.NewNopLogger(), 0, "/non/existing/dir")
require.NotNil(t, err)
require.Contains(t, err.Error(), `failed to save the sequence number`)
require.Contains(t, err.Error(), `failed to save sequence number`)
}
func Test_checkAndSaveSeqNum(t *testing.T) {