From 30ab2120ccb5a9d142808a5e4068923c98f75448 Mon Sep 17 00:00:00 2001 From: Mark Phelps <209477+markphelps@users.noreply.github.com> Date: Tue, 12 Dec 2023 11:10:36 -0500 Subject: [PATCH] chore: more IT fixes --- flipt-client-node/src/evaluation.test.ts | 4 ++-- flipt-client-python/tests/__init__.py | 6 ++++-- flipt-client-ruby/spec/evaluation_spec.rb | 4 ++-- 3 files changed, 8 insertions(+), 6 deletions(-) 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