// Checks response code for the test server response and fatals or skips the
// test if necessary.
Checks response code for the test server response and fatals or skips the
test if necessary.
// Checks response code for the test server response and fatals or skips the // test if necessary .
func checkTestScenarioResponse(t *testing.T, scenario string, res *testclient.Response, err error) {
	require.NoErrorf(t, err, "test server failed for scenario %v: %v", scenario, err)
	switch res.StatusCode {
	case code.Code_OK:
	case code.Code_UNIMPLEMENTED:
		t.Skipf("test server does not support this scenario, skipping")
	default:
		t.Fatalf(`got unexpected response code "%v" from test server`, res.StatusCode)
	}
}
func checkTestScenarioResponse ( t * testing . T , scenario string , res * testclient . Response , err error ) { require . NoErrorf ( t , err , " " , scenario , err ) switch res . StatusCode { case code . Code_OK : case code . Code_UNIMPLEMENTED : t . Skipf ( " " ) default : t . Fatalf ( `got unexpected response code "%v" from test server` , res . StatusCode ) } }
Checks response code for the test server response and fatals or skips the
test if necessary.
Checks response code for the test server response and fatals or skips the test if necessary .