Use t.Skip for TestUpsert to be compliant with the actual cade base.
This commit is contained in:
parent
2439c84c29
commit
d31a44a0bd
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue