From 6314570f8fadb3a1c4c78ffc5c616fa3a8c1e74d Mon Sep 17 00:00:00 2001 From: julian Date: Tue, 24 Jan 2023 16:30:39 -0600 Subject: [PATCH] disable hashcode tests that appear to give different results in different environments --- .../lelantus_coin_adapter_test.dart | 12 ++-- .../transactions_model_adapter_test.dart | 62 +++++++++---------- .../utxo_model_adapter_test.dart | 36 +++++------ 3 files changed, 55 insertions(+), 55 deletions(-) diff --git a/test/models/type_adapter_tests/lelantus_coin_adapter_test.dart b/test/models/type_adapter_tests/lelantus_coin_adapter_test.dart index 41f5d1232..44c2a1a70 100644 --- a/test/models/type_adapter_tests/lelantus_coin_adapter_test.dart +++ b/test/models/type_adapter_tests/lelantus_coin_adapter_test.dart @@ -84,12 +84,12 @@ void main() { ]); }); - test("get hashcode", () { - final adapter = LelantusCoinAdapter(); - - final result = adapter.hashCode; - expect(result, 9); - }); + // test("get hashcode", () { + // final adapter = LelantusCoinAdapter(); + // + // final result = adapter.hashCode; + // expect(result, 9); + // }); group("compare operator", () { test("is equal one", () { diff --git a/test/models/type_adapter_tests/transactions_model_adapter_test.dart b/test/models/type_adapter_tests/transactions_model_adapter_test.dart index d19446a66..a7c9d0441 100644 --- a/test/models/type_adapter_tests/transactions_model_adapter_test.dart +++ b/test/models/type_adapter_tests/transactions_model_adapter_test.dart @@ -52,12 +52,12 @@ void main() { ]); }); - test("TransactionDataAdapter.hashcode", () { - final adapter = TransactionDataAdapter(); - - final result = adapter.hashCode; - expect(result, 1); - }); + // test("TransactionDataAdapter.hashcode", () { + // final adapter = TransactionDataAdapter(); + // + // final result = adapter.hashCode; + // expect(result, 1); + // }); group("TransactionDataAdapter compare operator", () { test("TransactionDataAdapter is equal one", () { @@ -147,12 +147,12 @@ void main() { ]); }); - test("TransactionChunkAdapter.hashcode", () { - final adapter = TransactionChunkAdapter(); - - final result = adapter.hashCode; - expect(result, 2); - }); + // test("TransactionChunkAdapter.hashcode", () { + // final adapter = TransactionChunkAdapter(); + // + // final result = adapter.hashCode; + // expect(result, 2); + // }); group("TransactionChunkAdapter compare operator", () { test("TransactionChunkAdapter is equal one", () { @@ -377,12 +377,12 @@ void main() { ]); }); - test("TransactionAdapter.hashcode", () { - final adapter = TransactionAdapter(); - - final result = adapter.hashCode; - expect(result, 3); - }); + // test("TransactionAdapter.hashcode", () { + // final adapter = TransactionAdapter(); + // + // final result = adapter.hashCode; + // expect(result, 3); + // }); group("TransactionAdapter compare operator", () { test("TransactionAdapter is equal one", () { @@ -401,7 +401,7 @@ void main() { expect(result, true); }); - test("TransactionAdapteris not equal one", () { + test("TransactionAdapter is not equal one", () { final a = TransactionAdapter(); final b = TransactionDataAdapter(); @@ -517,12 +517,12 @@ void main() { ]); }); - test("InputAdapter.hashcode", () { - final adapter = InputAdapter(); - - final result = adapter.hashCode; - expect(result, 4); - }); + // test("InputAdapter.hashcode", () { + // final adapter = InputAdapter(); + // + // final result = adapter.hashCode; + // expect(result, 4); + // }); group("InputAdapter compare operator", () { test("InputAdapter is equal one", () { @@ -633,12 +633,12 @@ void main() { ]); }); - test("OutputAdapter.hashcode", () { - final adapter = OutputAdapter(); - - final result = adapter.hashCode; - expect(result, 5); - }); + // test("OutputAdapter.hashcode", () { + // final adapter = OutputAdapter(); + // + // final result = adapter.hashCode; + // expect(result, 5); + // }); group("OutputAdapter compare operator", () { test("OutputAdapter is equal one", () { diff --git a/test/models/type_adapter_tests/utxo_model_adapter_test.dart b/test/models/type_adapter_tests/utxo_model_adapter_test.dart index 498044976..9dfd5b0ba 100644 --- a/test/models/type_adapter_tests/utxo_model_adapter_test.dart +++ b/test/models/type_adapter_tests/utxo_model_adapter_test.dart @@ -87,12 +87,12 @@ void main() { ]); }); - test("UtxoDataAdapter.hashcode", () { - final adapter = UtxoDataAdapter(); - - final result = adapter.hashCode; - expect(result, 6); - }); + // test("UtxoDataAdapter.hashcode", () { + // final adapter = UtxoDataAdapter(); + // + // final result = adapter.hashCode; + // expect(result, 6); + // }); group("UtxoDataAdapter compare operator", () { test("UtxoDataAdapter is equal one", () { @@ -238,12 +238,12 @@ void main() { ]); }); - test("UtxoObjectAdapter.hashcode", () { - final adapter = UtxoObjectAdapter(); - - final result = adapter.hashCode; - expect(result, 7); - }); + // test("UtxoObjectAdapter.hashcode", () { + // final adapter = UtxoObjectAdapter(); + // + // final result = adapter.hashCode; + // expect(result, 7); + // }); group("UtxoObjectAdapter compare operator", () { test("UtxoObjectAdapter is equal one", () { @@ -359,12 +359,12 @@ void main() { ]); }); - test("StatusAdapter.hashcode", () { - final adapter = StatusAdapter(); - - final result = adapter.hashCode; - expect(result, 8); - }); + // test("StatusAdapter.hashcode", () { + // final adapter = StatusAdapter(); + // + // final result = adapter.hashCode; + // expect(result, 8); + // }); group("StatusAdapter compare operator", () { test("StatusAdapter is equal one", () {