func (s) TestRDSHandleResponseWithoutRDSWatch(t *testing.T) {
	fakeServer, cc, cleanup := startServerAndGetCC(t)
	defer cleanup()

	v2c := newV2Client(&testUpdateReceiver{
		f: func(string, map[string]interface{}) {},
	}, cc, goodNodeProto, func(int) time.Duration { return 0 }, nil)
	defer v2c.close()
	doLDS(t, v2c, fakeServer)

	if v2c.handleRDSResponse(badResourceTypeInRDSResponse) == nil {
		t.Fatal("v2c.handleRDSResponse() succeeded, should have failed")
	}

	if v2c.handleRDSResponse(goodRDSResponse1) != nil {
		t.Fatal("v2c.handleRDSResponse() succeeded, should have failed")
	}
}
// TestRDSHandleResponseWithoutRDSWatch tests the case where the v2Client
// receives an RDS response without a registered RDS watcher.
TestRDSHandleResponseWithoutRDSWatch tests the case where the v2Client
receives an RDS response without a registered RDS watcher.
// TestRDSHandleResponseWithoutRDSWatch tests the case where the v2Client // receives an RDS response without a registered RDS watcher .
func (s) TestRDSHandleResponseWithoutRDSWatch(t *testing.T) {
	fakeServer, cc, cleanup := startServerAndGetCC(t)
	defer cleanup()
	v2c := newV2Client(&testUpdateReceiver{
		f: func(string, map[string]interface{}) {},
	}, cc, goodNodeProto, func(int) time.Duration { return 0 }, nil)
	defer v2c.close()
	doLDS(t, v2c, fakeServer)
	if v2c.handleRDSResponse(badResourceTypeInRDSResponse) == nil {
		t.Fatal("v2c.handleRDSResponse() succeeded, should have failed")
	}
	if v2c.handleRDSResponse(goodRDSResponse1) != nil {
		t.Fatal("v2c.handleRDSResponse() succeeded, should have failed")
	}
}
func ( s ) TestRDSHandleResponseWithoutRDSWatch ( t * testing . T ) { fakeServer , cc , cleanup := startServerAndGetCC ( t ) defer cleanup ( ) v2c := newV2Client ( & testUpdateReceiver { f : func ( string , map [ string ] interface { } ) { } , } , cc , goodNodeProto , func ( int ) time . Duration { return 0 } , nil ) defer v2c . close ( ) doLDS ( t , v2c , fakeServer ) if v2c . handleRDSResponse ( badResourceTypeInRDSResponse ) == nil { t . Fatal ( " " ) } if v2c . handleRDSResponse ( goodRDSResponse1 ) != nil { t . Fatal ( " " ) } }
TestRDSHandleResponseWithoutRDSWatch tests the case where the v2Client
receives an RDS response without a registered RDS watcher.
TestRDSHandleResponseWithoutRDSWatch tests the case where the v2Client receives an RDS response without a registered RDS watcher .