From eb7c575452191e5e86c28bfa6959dd08da211723 Mon Sep 17 00:00:00 2001 From: Crystal Lemire Date: Fri, 8 Dec 2023 16:27:22 -0800 Subject: [PATCH] Update comments to clarify what testnets are affected by test files. (#868) * Update comments to clarify what these tests affect. --- .../client/constants/static_exchange_market_config_test.go | 3 ++- .../exchange_config/testnet_exchange_market_config.go | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/protocol/daemons/pricefeed/client/constants/static_exchange_market_config_test.go b/protocol/daemons/pricefeed/client/constants/static_exchange_market_config_test.go index fb694f41a3..3e3d0cdb04 100644 --- a/protocol/daemons/pricefeed/client/constants/static_exchange_market_config_test.go +++ b/protocol/daemons/pricefeed/client/constants/static_exchange_market_config_test.go @@ -176,7 +176,8 @@ func TestGenerateExchangeConfigJson(t *testing.T) { configs := GenerateExchangeConfigJson(exchange_config.TestnetExchangeMarketConfig) - // Uncomment to update testnet exchange data after changing the TestnetExchangeMarketConfig. + // Uncomment to update the exchange data used for various testnet deploys after changing the + // TestnetExchangeMarketConfig. //f, err := os.OpenFile("testdata/"+tc.expectedExchangeConfigJsonFile, os.O_CREATE|os.O_WRONLY|os.O_TRUNC, 0644) //require.NoError(t, err) //defer f.Close() diff --git a/protocol/testutil/daemons/pricefeed/exchange_config/testnet_exchange_market_config.go b/protocol/testutil/daemons/pricefeed/exchange_config/testnet_exchange_market_config.go index 5f5f9425f9..12ce2e83bc 100644 --- a/protocol/testutil/daemons/pricefeed/exchange_config/testnet_exchange_market_config.go +++ b/protocol/testutil/daemons/pricefeed/exchange_config/testnet_exchange_market_config.go @@ -7,7 +7,8 @@ import ( var ( // TestnetExchangeMarketConfig maps exchange feed ids to exchange market config. This map is used to generate - // the exchange config json used by the genesis state for testnet deploys. + // the exchange config json used to construct the genesis file for various testnet deploys defined in the testing + // package - namely, localnet, dev, and staging. Note that public testnet is not affected by this map. TestnetExchangeMarketConfig = map[types.ExchangeId]*types.MutableExchangeMarketConfig{ exchange_common.EXCHANGE_ID_BINANCE: { Id: exchange_common.EXCHANGE_ID_BINANCE,