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
22 changes: 22 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Run Tests

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Hermit
uses: cashapp/activate-hermit@v1

- name: Run tests
run: gradle build

Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,6 @@ class FeeEstimateEndpointTest {
verify { mockMempoolCollector.getLatestFeeEstimateForBlockTarget(2.0) }
}


private fun createMockFeeEstimate(timestamp: Instant): FeeEstimate {
// Create mock data using the actual augur library structure
val mockFeeEstimate = mockk<FeeEstimate>()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import java.time.Instant
import kotlin.test.assertEquals
import kotlin.test.assertTrue

class FeeEstimateEndpointTest {
class HistoricalFeeEstimateEndpointTest {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This caused gradle build to fail locally:

> Task :app:compileTestKotlin FAILED
e: file:////Development/augur/bitcoin-augur-reference/app/src/test/kotlin/xyz/block/augurref/api/FeeEstimateEndpointTest.kt:46:7 Redeclaration:
class FeeEstimateEndpointTest : Any
e: file:///Development/augur/bitcoin-augur-reference/app/src/test/kotlin/xyz/block/augurref/api/HistoricalFeeEstimateEndpointTest.kt:43:7 Redeclaration:
class FeeEstimateEndpointTest : Any
[Incubating] Problems report is available at: file:///Development/augur/bitcoin-augur-reference/build/reports/problems/problems-report.html

private val mockMempoolCollector = mockk<MempoolCollector>()
private val objectMapper = ObjectMapper().apply {
registerModule(KotlinModule.Builder().build())
Expand Down