Use t.Skip for TestUpsert to be compliant with the actual cade base.

This commit is contained in:
Yoann Cerda 2018-06-12 17:05:28 +08:00 committed by Gert-Jan Timmer
parent 2439c84c29
commit d31a44a0bd
1 changed files with 1 additions and 4 deletions

View File

@ -234,10 +234,7 @@ func TestInsert(t *testing.T) {
func TestUpsert(t *testing.T) { func TestUpsert(t *testing.T) {
_, n, _ := Version() _, n, _ := Version()
if !(n >= 3024000) { if !(n >= 3024000) {
t.Log("Your version of sqlite3 doesn't support UPSERT feature.") t.Skip("UPSERT requires sqlite3 => 3.24.0")
t.Log("Version >= '3.24.0' needed.")
t.Log("Skipping test...")
return
} }
tempFilename := TempFilename(t) tempFilename := TempFilename(t)
defer os.Remove(tempFilename) defer os.Remove(tempFilename)