Skip to content

Commit

Permalink
Disable flaky TestWatchBackend test
Browse files Browse the repository at this point in the history
Relates tektoncd#1178

Signed-off-by: Luiz Carvalho <[email protected]>
  • Loading branch information
lcarva committed Sep 17, 2024
1 parent 2230e92 commit 8b2225c
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions pkg/chains/storage/docdb/docdb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,19 +310,20 @@ func TestWatchBackend(t *testing.T) {
expectedMongoEnv: testEnv,
wantErr: true,
},
{
name: "verify mongo-server-url-dir/MONGO_SERVER_URL is watched",
cfg: config.Config{
Storage: config.StorageConfigs{
DocDB: config.DocDBStorageConfig{
URL: "mongo://chainsdb/chainscollection?id_field=name",
MongoServerURLDir: t.TempDir(),
},
},
},
expectedMongoEnv: "mongodb://updatedEnv",
wantErr: false,
},
// TODO: https://github.com/tektoncd/chains/issues/1178
// {
// name: "verify mongo-server-url-dir/MONGO_SERVER_URL is watched",
// cfg: config.Config{
// Storage: config.StorageConfigs{
// DocDB: config.DocDBStorageConfig{
// URL: "mongo://chainsdb/chainscollection?id_field=name",
// MongoServerURLDir: t.TempDir(),
// },
// },
// },
// expectedMongoEnv: "mongodb://updatedEnv",
// wantErr: false,
// },
}

for _, tt := range tests {
Expand Down

0 comments on commit 8b2225c

Please sign in to comment.