Skip to content

Commit

Permalink
prepend package name for Record class (#295)
Browse files Browse the repository at this point in the history
* prepend package name for Record class

* Update nightly-pekko-1.1-builds.yaml
  • Loading branch information
pjfanning authored Dec 23, 2023
1 parent 44b465e commit 0bc0b9e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nightly-pekko-1.1-builds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
strategy:
fail-fast: false
matrix:
JDK: [ 8, 11 ]
JDK: [ 8, 11, 17 ]
env:
JAVA_OPTS: -Xms2G -Xmx2G -Xss2M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,15 @@ public void PullRecord() throws Exception {
invocation ->
CompletableFuture.completedFuture(
GetRecordsResponse.builder()
.records(Record.builder().sequenceNumber("1").build())
.records(software.amazon.awssdk.services.kinesis.model.Record
.builder().sequenceNumber("1").build())
.nextShardIterator("iter")
.build()));

final Source<Record, NotUsed> source = KinesisSource.basic(settings, amazonKinesisAsync);
final CompletionStage<Record> record = source.runWith(Sink.head(), system);
final Source<software.amazon.awssdk.services.kinesis.model.Record, NotUsed> source =
KinesisSource.basic(settings, amazonKinesisAsync);
final CompletionStage<software.amazon.awssdk.services.kinesis.model.Record> record =
source.runWith(Sink.head(), system);

assertEquals("1", record.toCompletableFuture().get(10, TimeUnit.SECONDS).sequenceNumber());
}
Expand Down

0 comments on commit 0bc0b9e

Please sign in to comment.