From 30dda2cabc12d4b51cc3bde53efcf26cdcfe7e33 Mon Sep 17 00:00:00 2001 From: Ryan Date: Fri, 16 Jun 2023 10:53:13 +0200 Subject: [PATCH] fix: renaming test case, fixing expected val --- cmd/celestia/rpc_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/celestia/rpc_test.go b/cmd/celestia/rpc_test.go index aab8fba131..9380a8b01e 100644 --- a/cmd/celestia/rpc_test.go +++ b/cmd/celestia/rpc_test.go @@ -17,11 +17,11 @@ func Test_parseNamespaceID(t *testing.T) { } testCases := []testCase{ { - name: "8 byte hex encoded namespace ID gets right padded", param: "0x0c204d39600fddd3", + name: "8 byte hex encoded namespace ID gets left padded", want: namespace.ID{ 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x0, 0x0, 0x0, 0x0, 0xc, 0x20, 0x4d, 0x39, 0x60, 0xf, 0xdd, 0xd3, 0x0, 0x0, + 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc, 0x20, 0x4d, 0x39, 0x60, 0xf, 0xdd, 0xd3, }, wantErr: false, },