mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-14 08:02:15 +03:00
fix linting in cli/source/stub/stub_test.go (#5972)
https://github.com/hasura/graphql-engine/pull/5972
This commit is contained in:
parent
c5ca59208e
commit
989832cfb5
@ -17,16 +17,46 @@ func Test(t *testing.T) {
|
||||
}
|
||||
|
||||
m := source.NewMigrations()
|
||||
m.Append(&source.Migration{Version: 1, Direction: source.Up})
|
||||
m.Append(&source.Migration{Version: 1, Direction: source.Down})
|
||||
m.Append(&source.Migration{Version: 1, Direction: source.MetaUp})
|
||||
m.Append(&source.Migration{Version: 1, Direction: source.MetaDown})
|
||||
m.Append(&source.Migration{Version: 3, Direction: source.Up})
|
||||
m.Append(&source.Migration{Version: 4, Direction: source.MetaUp})
|
||||
m.Append(&source.Migration{Version: 5, Direction: source.Down})
|
||||
m.Append(&source.Migration{Version: 6, Direction: source.MetaDown})
|
||||
m.Append(&source.Migration{Version: 8, Direction: source.Up})
|
||||
m.Append(&source.Migration{Version: 8, Direction: source.Down})
|
||||
err = m.Append(&source.Migration{Version: 1, Direction: source.Up})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
err = m.Append(&source.Migration{Version: 1, Direction: source.Down})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
err = m.Append(&source.Migration{Version: 1, Direction: source.MetaUp})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
err = m.Append(&source.Migration{Version: 1, Direction: source.MetaDown})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
err = m.Append(&source.Migration{Version: 3, Direction: source.Up})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
err = m.Append(&source.Migration{Version: 4, Direction: source.MetaUp})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
err = m.Append(&source.Migration{Version: 5, Direction: source.Down})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
err = m.Append(&source.Migration{Version: 6, Direction: source.MetaDown})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
err = m.Append(&source.Migration{Version: 8, Direction: source.Up})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
err = m.Append(&source.Migration{Version: 8, Direction: source.Down})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
d.(*Stub).Migrations = m
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user