Ensure discovery tests run against postgres (#1230)
This commit is contained in:
parent
3c73d3a33c
commit
b16f27c54b
@ -14,16 +14,9 @@ import (
|
||||
)
|
||||
|
||||
func TestCache_Refresh(t *testing.T) {
|
||||
ctx := testcontext.New(t)
|
||||
defer ctx.Cleanup()
|
||||
|
||||
planet, err := testplanet.New(t, 1, 10, 0)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
defer ctx.Check(planet.Shutdown)
|
||||
|
||||
planet.Start(ctx)
|
||||
testplanet.Run(t, testplanet.Config{
|
||||
SatelliteCount: 1, StorageNodeCount: 10, UplinkCount: 0,
|
||||
}, func(t *testing.T, ctx *testcontext.Context, planet *testplanet.Planet) {
|
||||
time.Sleep(5 * time.Second)
|
||||
|
||||
satellite := planet.Satellites[0]
|
||||
@ -33,4 +26,5 @@ func TestCache_Refresh(t *testing.T) {
|
||||
assert.Equal(t, storageNode.Addr(), node.Address.Address)
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user