diff options
author | Till <2353100+S7evinK@users.noreply.github.com> | 2022-08-02 17:00:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-02 17:00:16 +0200 |
commit | df5d4dc7a36f7fe5ec17f9da81c535d5c01bd505 (patch) | |
tree | 4cc8ad406f9b621063a09f39b9930c9d1fd99b92 /test | |
parent | e384eb683f158950956c8e003b33491ad0905b83 (diff) |
Delete correct Send-to-Device messages (#2608)
* Add send-to-device tests
* Update tests, fix message deletion
* PR comments
Diffstat (limited to 'test')
-rw-r--r-- | test/testrig/base.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/testrig/base.go b/test/testrig/base.go index facb49f3..d13c4312 100644 --- a/test/testrig/base.go +++ b/test/testrig/base.go @@ -32,11 +32,11 @@ func CreateBaseDendrite(t *testing.T, dbType test.DBType) (*base.BaseDendrite, f var cfg config.Dendrite cfg.Defaults(false) cfg.Global.JetStream.InMemory = true - switch dbType { case test.DBTypePostgres: cfg.Global.Defaults(true) // autogen a signing key cfg.MediaAPI.Defaults(true) // autogen a media path + cfg.Global.ServerName = "test" // use a distinct prefix else concurrent postgres/sqlite runs will clash since NATS will use // the file system event with InMemory=true :( cfg.Global.JetStream.TopicPrefix = fmt.Sprintf("Test_%d_", dbType) @@ -50,6 +50,7 @@ func CreateBaseDendrite(t *testing.T, dbType test.DBType) (*base.BaseDendrite, f return base.NewBaseDendrite(&cfg, "Test", base.DisableMetrics), close case test.DBTypeSQLite: cfg.Defaults(true) // sets a sqlite db per component + cfg.Global.ServerName = "test" // use a distinct prefix else concurrent postgres/sqlite runs will clash since NATS will use // the file system event with InMemory=true :( cfg.Global.JetStream.TopicPrefix = fmt.Sprintf("Test_%d_", dbType) |