lint: fix lll and imports
All checks were successful
CI / build-docker (push) Successful in 3s
CI / build-docker-bootstrap (push) Has been skipped
CI / release-test (push) Successful in 15s

This commit is contained in:
wispem-wantex 2026-01-31 20:35:03 -08:00
parent 229f41e478
commit 75b7662c34

View File

@ -4,12 +4,13 @@ import (
"slices"
"testing"
"git.offline-twitter.com/offline-labs/gas-stack/pkg/db"
"git.offline-twitter.com/offline-labs/gas-stack/pkg/flowutils"
"git.offline-twitter.com/offline-labs/gas-stack/pkg/schema"
"github.com/go-test/deep"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"git.offline-twitter.com/offline-labs/gas-stack/pkg/db"
"git.offline-twitter.com/offline-labs/gas-stack/pkg/flowutils"
"git.offline-twitter.com/offline-labs/gas-stack/pkg/schema"
)
var (
@ -146,8 +147,14 @@ func TestIncorrectMigrations(t *testing.T) {
// Has the right column, but it's the wrong type
assert.Len(t, db1Schema.Tables["t1"].Columns, len(db2Schema.Tables["t1"].Columns))
col1 := db1Schema.Tables["t1"].Columns[slices.IndexFunc(db1Schema.Tables["t1"].Columns, func(c schema.Column) bool { return c.Name == "data3" })]
col2 := db2Schema.Tables["t1"].Columns[slices.IndexFunc(db2Schema.Tables["t1"].Columns, func(c schema.Column) bool { return c.Name == "data3" })]
col1 := db1Schema.Tables["t1"].Columns[slices.IndexFunc(
db1Schema.Tables["t1"].Columns,
func(c schema.Column) bool { return c.Name == "data3" },
)]
col2 := db2Schema.Tables["t1"].Columns[slices.IndexFunc(
db2Schema.Tables["t1"].Columns,
func(c schema.Column) bool { return c.Name == "data3" },
)]
assert.NotEqual(t, col1, col2)
assert.Equal(t, col1.Type, "integer") // Full schema has an integer column