Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@
import org.patinanetwork.codebloom.common.simpleredis.SimpleRedis;
import org.patinanetwork.codebloom.common.simpleredis.SimpleRedisProvider;
import org.patinanetwork.codebloom.common.simpleredis.SimpleRedisSlot;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Component;

@Component
@Profile("!ci")
public class RateLimitingFilter implements Filter {

private static final long API_RATE_LIMIT_CAPACITY = 15L;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@ void testBaseApiRoute() {
assertTrue(serverMetadataObject.getName() != null, "Testing server name is not null");
List<String> authors = serverMetadataObject.getAuthors();
assertTrue(authors != null, "Testing authors list is not null");
assertTrue(authors.size() == 6, "Testing length of authors, expected 6.");
assertTrue(authors.size() > 0, "Testing length of authors.");
}
}
Loading