Repository: DiceDB/dice
File: integration_tests/commands/async/object_test.go (Go)

Code before:
			name:       "Object Encoding check for embstr",
			commands:   []string{"SET foo bar", "OBJECT ENCODING foo"},
			expected:   []interface{}{"OK", "embstr"},
			assertType: []string{"equal", "equal"},
			delay:      []time.Duration{0, 0},
		},
		{
			name:       "Object Encoding check for deque",
			commands:   []string{"LPUSH listKey 'value1'", "LPUSH listKey 'value2'", "OBJECT ENCODING listKey"},
			expected:   []interface{}{int64(1), int64(2), "deque"},
			assertType: []string{"assert", "assert", "equal"},
			delay:      []time.Duration{0, 0, 0},
		},
		{
			name:       "Object Encoding check for bf",
			commands:   []string{"BFADD bloomkey value1", "BFADD bloomkey value2", "OBJECT ENCODING bloomkey"},
			expected:   []interface{}{int64(1), int64(1), "bf"},
			assertType: []string{"assert", "assert", "equal"},
			delay:      []time.Duration{0, 0, 0},
		},
		{
			name:       "Object Encoding check for json",
			commands:   []string{`JSON.SET k1 $ ` + simpleJSON, "OBJECT ENCODING k1"},
			expected:   []interface{}{"OK", "json"},
			assertType: []string{"equal", "equal"},
			delay:      []time.Duration{0, time.Second},
		},
		{
			name:       "Object Encoding check for bytearray",
			commands:   []string{"SETBIT kbitset 0 1", "SETBIT kbitset 1 0", "SETBIT kbitset 2 1", "OBJECT ENCODING kbitset"},
			expected:   []interface{}{int64(0), int64(0), int64(0), "bytearray"},
			assertType: []string{"assert", "assert", "assert", "equal"},
			delay:      []time.Duration{0, 0, 0, 0},
		},
		{
			name:       "Object Encoding check for hashmap",
			commands:   []string{"HSET hashKey hKey hValue", "OBJECT ENCODING hashKey"},
			expected:   []interface{}{int64(1), "hashmap"},
			assertType: []string{"assert", "equal"},
			delay:      []time.Duration{0, 0},
		},
		{
			name:       "Object Encoding check for btree",
			commands:   []string{"ZADD btreekey 1 'member1' 2 'member2'", "OBJECT ENCODING btreekey"},
			expected:   []interface{}{int64(2), "btree"},
			assertType: []string{"equal", "equal"},
			delay:      []time.Duration{0, 0},
		},
		{
			name:       "Object Encoding check for setstr",
			commands:   []string{"SADD skey one two three", "OBJECT ENCODING skey"},

Review comment (suggestion):
nit:
```suggestion
			delay:      []time.Duration{0, 0},
```

Code after:
			assertType: []string{"equal", "equal"},
			delay:      []time.Duration{0, 0},
			cleanup:    []string{"DEL foo"},
		},
		{
			name:       "Object Encoding check for embstr",
			commands:   []string{"SET foo bar", "OBJECT ENCODING foo"},
			expected:   []interface{}{"OK", "embstr"},
			assertType: []string{"equal", "equal"},
			delay:      []time.Duration{0, 0},
			cleanup:    []string{"DEL foo"},
		},
		{
			name:       "Object Encoding check for deque",
			commands:   []string{"LPUSH listKey 'value1'", "LPUSH listKey 'value2'", "OBJECT ENCODING listKey"},
			expected:   []interface{}{int64(1), int64(2), "deque"},
			assertType: []string{"assert", "assert", "equal"},
			delay:      []time.Duration{0, 0, 0},
			cleanup:    []string{"DEL listKey"},
		},
		{
			name:       "Object Encoding check for bf",
			commands:   []string{"BFADD bloomkey value1", "BFADD bloomkey value2", "OBJECT ENCODING bloomkey"},
			expected:   []interface{}{int64(1), int64(1), "bf"},
			assertType: []string{"assert", "assert", "equal"},
			delay:      []time.Duration{0, 0, 0},
			cleanup:    []string{"DEL bloomkey"},
		},
		{
			name:       "Object Encoding check for json",
			commands:   []string{`JSON.SET k1 $ ` + simpleJSON, "OBJECT ENCODING k1"},
			expected:   []interface{}{"OK", "json"},
			assertType: []string{"equal", "equal"},
			delay:      []time.Duration{0, 0},
			cleanup:    []string{"DEL k1"},
		},
		{
			name:       "Object Encoding check for bytearray",
			commands:   []string{"SETBIT kbitset 0 1", "SETBIT kbitset 1 0", "SETBIT kbitset 2 1", "OBJECT ENCODING kbitset"},
			expected:   []interface{}{int64(0), int64(0), int64(0), "bytearray"},
			assertType: []string{"assert", "assert", "assert", "equal"},
			delay:      []time.Duration{0, 0, 0, 0},
			cleanup:    []string{"DEL kbitset"},
		},
		{
			name:       "Object Encoding check for hashmap",
			commands:   []string{"HSET hashKey hKey hValue", "OBJECT ENCODING hashKey"},
			expected:   []interface{}{int64(1), "hashmap"},
			assertType: []string{"assert", "equal"},
			delay:      []time.Duration{0, 0},
			cleanup:    []string{"DEL hashKey"},