(t *testing.T, p *reverseProxy, user config.ClusterUser, query string, failReason string)
| 356 | } |
| 357 | |
| 358 | func compareTransactionFailReason(t *testing.T, p *reverseProxy, user config.ClusterUser, query string, failReason string) { |
| 359 | h := fnv.New32a() |
| 360 | h.Write([]byte(user.Name + user.Password)) |
| 361 | transactionKey := cache.NewKey([]byte(query), url.Values{"query": []string{query}}, "", 0, 0, h.Sum32()) |
| 362 | transactionStatus, err := p.caches[fileSystemCache].TransactionRegistry.Status(transactionKey) |
| 363 | assert.Nil(t, err) |
| 364 | assert.Equal(t, failReason, transactionStatus.FailReason) |
| 365 | } |
| 366 | |
| 367 | func TestReverseProxy_ServeHTTP1(t *testing.T) { |
| 368 | query := "SELECT123456" |
no test coverage detected