mirror of https://github.com/redis/redis.git
				
				
				
			adding missing test cases GET and GETEX (#12125)
adding test case of expired key or not exist for GET and GETEX. for better test coverage.
This commit is contained in:
		
							parent
							
								
									ce5f4ea3a9
								
							
						
					
					
						commit
						42dd98ec19
					
				|  | @ -151,6 +151,14 @@ start_server {tags {"string"}} { | |||
|         set ex | ||||
|     } {*syntax*} | ||||
| 
 | ||||
|     test "GETEX and GET expired key or not exist" { | ||||
|         r del foo | ||||
|         r set foo bar px 1 | ||||
|         after 2 | ||||
|         assert_equal {} [r getex foo] | ||||
|         assert_equal {} [r get foo] | ||||
|     } | ||||
| 
 | ||||
|     test "GETEX no arguments" { | ||||
|          set ex {} | ||||
|          catch {r getex} ex | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue