Skip to content

Commit 19b8b48

Browse files
committed
fix tests
1 parent b900b30 commit 19b8b48

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

provider/script.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func scriptResource() *schema.Resource {
2929
return diag.Errorf("at least one of \"run_on_start\", \"run_on_stop\", or \"cron\" must be set")
3030
}
3131
if !runOnStart && startBlocksLogin {
32-
return diag.Errorf("\"start_blocks_login\" can only be set if \"run_on_start\" is true")
32+
return diag.Errorf("\"start_blocks_login\" can only be set if \"run_on_start\" is \"true\"")
3333
}
3434
return nil
3535
},

provider/script_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func TestScriptNeverRuns(t *testing.T) {
6969
script = "Wow"
7070
}
7171
`,
72-
ExpectError: regexp.MustCompile(`at least one of run_on_start, run_on_stop, or cron must be set`),
72+
ExpectError: regexp.MustCompile("at least one of \"run_on_start\", \"run_on_stop\", or \"cron\" must be set"),
7373
}},
7474
})
7575
}
@@ -94,7 +94,7 @@ func TestScriptStartBlocksLoginRequiresRunOnStart(t *testing.T) {
9494
start_blocks_login = true
9595
}
9696
`,
97-
ExpectError: regexp.MustCompile(`start_blocks_login can only be set if run_on_start is true`),
97+
ExpectError: regexp.MustCompile("\"start_blocks_login\" can only be set if \"run_on_start\" is \"true\""),
9898
}},
9999
})
100100
resource.Test(t, resource.TestCase{

0 commit comments

Comments
 (0)