mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-16 11:04:42 -07:00
PR feedback: use more idiomatic require_Error with text
This commit is contained in:
@@ -2618,12 +2618,10 @@ func TestServerEventsReload(t *testing.T) {
|
||||
require_NoError(t, err)
|
||||
|
||||
require_True(t, apiResp.Data == nil)
|
||||
require_True(t, apiResp.Error != nil)
|
||||
require_True(t, apiResp.Error.Description == "Parse error on line 1: 'Expected a top-level value to end with a new line, comment or EOF, but got 'n' instead.'")
|
||||
require_Error(t, apiResp.Error, fmt.Errorf("Parse error on line 1: 'Expected a top-level value to end with a new line, comment or EOF, but got 'n' instead.'"))
|
||||
|
||||
// See that the ping interval has changed.
|
||||
require_True(t, s.getOpts().PingInterval == 200*time.Millisecond)
|
||||
|
||||
}
|
||||
|
||||
func Benchmark_GetHash(b *testing.B) {
|
||||
|
||||
Reference in New Issue
Block a user