Skip to content

Commit

Permalink
SNOW-1805174 Format.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-mbobowski committed Nov 20, 2024
1 parent 309fa4d commit 7ca6cfc
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -261,10 +261,10 @@ public static void setDefaultValues(Map<String, String> config) {
"");

setFieldToDefaultValues(
config,
SNOWPIPE_STREAMING_MAX_CLIENT_LAG,
SNOWPIPE_STREAMING_MAX_CLIENT_LAG_SECONDS_DEFAULT,
"seconds");
config,
SNOWPIPE_STREAMING_MAX_CLIENT_LAG,
SNOWPIPE_STREAMING_MAX_CLIENT_LAG_SECONDS_DEFAULT,
"seconds");
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -490,9 +490,9 @@ public void testErrorLog_DisallowedValues() {
@Test
public void testStreamingEmptyFlushTime() {
Map<String, String> config =
SnowflakeSinkConnectorConfigBuilder.streamingConfig()
.withSingleBufferEnabled(false)
.build();
SnowflakeSinkConnectorConfigBuilder.streamingConfig()
.withSingleBufferEnabled(false)
.build();
config.remove(SnowflakeSinkConnectorConfig.BUFFER_FLUSH_TIME_SEC);
assertThatThrownBy(() -> connectorConfigValidator.validateConfig(config))
.isInstanceOf(SnowflakeKafkaConnectorException.class)
Expand All @@ -502,9 +502,9 @@ public void testStreamingEmptyFlushTime() {
@Test
public void testStreamingFlushTimeSmall() {
Map<String, String> config =
SnowflakeSinkConnectorConfigBuilder.streamingConfig()
.withSingleBufferEnabled(false)
.build();
SnowflakeSinkConnectorConfigBuilder.streamingConfig()
.withSingleBufferEnabled(false)
.build();
config.put(
SnowflakeSinkConnectorConfig.BUFFER_FLUSH_TIME_SEC,
(StreamingUtils.STREAMING_BUFFER_FLUSH_TIME_MINIMUM_SEC - 1) + "");
Expand All @@ -516,9 +516,9 @@ public void testStreamingFlushTimeSmall() {
@Test
public void testStreamingFlushTimeNotNumber() {
Map<String, String> config =
SnowflakeSinkConnectorConfigBuilder.streamingConfig()
.withSingleBufferEnabled(false)
.build();
SnowflakeSinkConnectorConfigBuilder.streamingConfig()
.withSingleBufferEnabled(false)
.build();
config.put(SnowflakeSinkConnectorConfig.BUFFER_FLUSH_TIME_SEC, "fdas");
assertThatThrownBy(() -> connectorConfigValidator.validateConfig(config))
.isInstanceOf(SnowflakeKafkaConnectorException.class)
Expand Down Expand Up @@ -552,9 +552,9 @@ public void testStreamingEmptyBufferCount() {
@Test
public void testStreamingBufferCountNegative() {
Map<String, String> config =
SnowflakeSinkConnectorConfigBuilder.streamingConfig()
.withSingleBufferEnabled(false)
.build();
SnowflakeSinkConnectorConfigBuilder.streamingConfig()
.withSingleBufferEnabled(false)
.build();
config.put(BUFFER_COUNT_RECORDS, "-1");
assertThatThrownBy(() -> connectorConfigValidator.validateConfig(config))
.isInstanceOf(SnowflakeKafkaConnectorException.class)
Expand All @@ -564,9 +564,9 @@ public void testStreamingBufferCountNegative() {
@Test
public void testStreamingBufferCountValue() {
Map<String, String> config =
SnowflakeSinkConnectorConfigBuilder.streamingConfig()
.withSingleBufferEnabled(false)
.build();
SnowflakeSinkConnectorConfigBuilder.streamingConfig()
.withSingleBufferEnabled(false)
.build();
config.put(BUFFER_COUNT_RECORDS, "adssadsa");
assertThatThrownBy(() -> connectorConfigValidator.validateConfig(config))
.isInstanceOf(SnowflakeKafkaConnectorException.class)
Expand Down

0 comments on commit 7ca6cfc

Please sign in to comment.