diff --git a/flipt-client-node/src/evaluation.test.ts b/flipt-client-node/src/evaluation.test.ts index 4a90732b..f749962f 100644 --- a/flipt-client-node/src/evaluation.test.ts +++ b/flipt-client-node/src/evaluation.test.ts @@ -61,7 +61,7 @@ test('variant failure', () => { expect(variant.result).toBeNull(); expect(variant.status).toEqual('failure'); expect(variant.error_message).toEqual( - 'failed to get flag information default/nonexistent' + 'invalid request: failed to get flag information default/nonexistent' ); }); @@ -78,6 +78,6 @@ test('boolean failure', () => { expect(boolean.result).toBeNull(); expect(boolean.status).toEqual('failure'); expect(boolean.error_message).toEqual( - 'failed to get flag information default/nonexistent' + 'invalid request: failed to get flag information default/nonexistent' ); }); diff --git a/flipt-client-python/tests/__init__.py b/flipt-client-python/tests/__init__.py index 1af31ba6..72cff4ef 100644 --- a/flipt-client-python/tests/__init__.py +++ b/flipt-client-python/tests/__init__.py @@ -46,7 +46,8 @@ def test_failure_variant(self): ) self.assertIsNone(variant.result) self.assertEqual( - variant.error_message, "failed to get flag information default/nonexistent" + variant.error_message, + "invalid request: failed to get flag information default/nonexistent", ) self.assertEqual("failure", variant.status) @@ -56,7 +57,8 @@ def test_failure_boolean(self): ) self.assertIsNone(boolean.result) self.assertEqual( - boolean.error_message, "failed to get flag information default/nonexistent" + boolean.error_message, + "invalid request: failed to get flag information default/nonexistent", ) self.assertEqual("failure", boolean.status) diff --git a/flipt-client-ruby/spec/evaluation_spec.rb b/flipt-client-ruby/spec/evaluation_spec.rb index 18457697..48b7ef95 100644 --- a/flipt-client-ruby/spec/evaluation_spec.rb +++ b/flipt-client-ruby/spec/evaluation_spec.rb @@ -50,7 +50,7 @@ expect(resp).to_not be_nil expect(resp['result']).to be_nil expect(resp['status']).to eq('failure') - expect(resp['error_message']).to eq('failed to get flag information default/nonexistent') + expect(resp['error_message']).to eq('invalid request: failed to get flag information default/nonexistent') end end @@ -65,7 +65,7 @@ expect(resp).to_not be_nil expect(resp['result']).to be_nil expect(resp['status']).to eq('failure') - expect(resp['error_message']).to eq('failed to get flag information default/nonexistent') + expect(resp['error_message']).to eq('invalid request: failed to get flag information default/nonexistent') end end end