Skip to content

Commit

Permalink
Address Gears test fail - Cleanup Function libraries (#3840)
Browse files Browse the repository at this point in the history
* Check Gears test fail

* Check modules package

* Revert all changes in Makefile

* Cleanup Function libraries
  • Loading branch information
sazzad16 authored May 19, 2024
1 parent 7aad706 commit 026d5e4
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@

import java.util.ArrayList;
import java.util.List;

import org.junit.After;
import org.junit.Test;

import redis.clients.jedis.RedisProtocol;
import redis.clients.jedis.exceptions.JedisDataException;
import redis.clients.jedis.gears.TFunctionListParams;
import redis.clients.jedis.gears.TFunctionLoadParams;
import redis.clients.jedis.gears.resps.GearsLibraryInfo;
Expand All @@ -23,6 +25,13 @@ public CommandObjectsTriggersAndFunctionsCommandsTest(RedisProtocol protocol) {
super(protocol);
}

@After
public void tearDown() throws Exception {
try {
exec(commandObjects.tFunctionDelete("lib"));
} catch (JedisDataException de) { }
}

@Test
public void testTFunctionLoadAndCall() {
String libraryCode = "#!js api_version=1.0 name=lib\n" +
Expand Down

0 comments on commit 026d5e4

Please sign in to comment.