mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-25 22:09:08 +01:00
Fix SQLiteStore test
This commit is contained in:
@@ -2,6 +2,7 @@ package event
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"github.com/stretchr/testify/assert"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
@@ -37,7 +38,7 @@ func TestNewSQLiteStore(t *testing.T) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Println(len(result))
|
assert.Len(t, result, 10)
|
||||||
|
|
||||||
result, err = store.GetLast(accountID, 5)
|
result, err = store.GetLast(accountID, 5)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@@ -45,5 +46,5 @@ func TestNewSQLiteStore(t *testing.T) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Println(len(result))
|
assert.Len(t, result, 5)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user