From 5f3e64e3252248090ad4d989aa0cf4ccc07d260f Mon Sep 17 00:00:00 2001 From: Chenyao Yu <4844716+chenyaoy@users.noreply.github.com> Date: Mon, 3 Jun 2024 15:20:26 -0400 Subject: [PATCH] clean up test --- protocol/x/vault/keeper/orders_test.go | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/protocol/x/vault/keeper/orders_test.go b/protocol/x/vault/keeper/orders_test.go index 664d422ae1..9b2d1ae4f7 100644 --- a/protocol/x/vault/keeper/orders_test.go +++ b/protocol/x/vault/keeper/orders_test.go @@ -694,42 +694,32 @@ func TestGetVaultClobOrderClientId(t *testing.T) { // Expected client ID. expectedClientId uint32 }{ - "Buy, Block Height Odd, Layer 1": { + "Buy, Layer 1": { side: clobtypes.Order_SIDE_BUY, // 0<<31 layer: 1, // 1<<23 expectedClientId: 0<<31 | 1<<23, }, - "Buy, Block Height Even, Layer 1": { - side: clobtypes.Order_SIDE_BUY, // 0<<31 - layer: 1, // 1<<23 - expectedClientId: 0<<31 | 1<<23, - }, - "Sell, Block Height Odd, Layer 2": { - side: clobtypes.Order_SIDE_SELL, // 1<<31 - layer: 2, // 2<<23 - expectedClientId: 1<<31 | 2<<23, - }, - "Sell, Block Height Even, Layer 2": { + "Sell, Layer 2": { side: clobtypes.Order_SIDE_SELL, // 1<<31 layer: 2, // 2<<23 expectedClientId: 1<<31 | 2<<23, }, - "Buy, Block Height Even, Layer Max Uint8": { + "Buy, Layer Max Uint8": { side: clobtypes.Order_SIDE_BUY, // 0<<31 layer: math.MaxUint8, // 255<<23 expectedClientId: 0<<31 | 255<<23, }, - "Sell, Block Height Odd, Layer 0": { + "Sell, Layer 0": { side: clobtypes.Order_SIDE_SELL, // 1<<31 layer: 0, // 0<<23 expectedClientId: 1<<31 | 0<<23, }, - "Sell, Block Height Odd (negative), Layer 202": { + "Sell, Layer 202": { side: clobtypes.Order_SIDE_SELL, // 1<<31 layer: 202, // 202<<23 expectedClientId: 1<<31 | 202<<23, }, - "Buy, Block Height Even (zero), Layer 157": { + "Buy, Layer 157": { side: clobtypes.Order_SIDE_SELL, // 1<<31 layer: 157, // 157<<23 expectedClientId: 1<<31 | 157<<23,