Skip to content

Commit

Permalink
Speculatively disable test blocking MQ as requested by Trevor (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuafcole authored Aug 15, 2024
1 parent 791603e commit 250dad5
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions rai/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -355,23 +355,26 @@ func TestListTransactions(t *testing.T) {
}

// testing tag filters for transactions
func TestListTransactionsByTag(t *testing.T) {
client := test.client
// @FIXME: Temporarily disabled due to blocking MQ without oncallers available
// for RCA. See https://relationalai.slack.com/archives/C028U514FQV/p1723672487903109
// for details.
// func TestListTransactionsByTag(t *testing.T) {
// client := test.client

query := "x, x^2, x^3, x^4 from x in {1; 2; 3; 4; 5}"
tag := fmt.Sprintf("rai-sdk-go:%d", time.Now().Unix())
txn, err := client.Execute(test.databaseName, test.engineName, query, nil, true, tag)
assert.Nil(t, err)
// query := "x, x^2, x^3, x^4 from x in {1; 2; 3; 4; 5}"
// tag := fmt.Sprintf("rai-sdk-go:%d", time.Now().Unix())
// txn, err := client.Execute(test.databaseName, test.engineName, query, nil, true, tag)
// assert.Nil(t, err)

expectedProblems := []Problem{}
assert.Equal(t, expectedProblems, txn.Problems)
// expectedProblems := []Problem{}
// assert.Equal(t, expectedProblems, txn.Problems)

txns, err := client.ListTransactions(tag)
assert.Nil(t, err)
// txns, err := client.ListTransactions(tag)
// assert.Nil(t, err)

assert.Equal(t, 1, len(txns), "filter tag did not apply as expected")
// assert.Equal(t, 1, len(txns), "filter tag did not apply as expected")

}
// }

func findRelation(relations []RelationV1, colName string) *RelationV1 {
for _, relation := range relations {
Expand Down

0 comments on commit 250dad5

Please sign in to comment.