Satswalker / nostr_dart

A Nostr client library written in Dart
MIT License
1 stars 0 forks source link

Tests failing under GitHub workflow #1

Closed Satswalker closed 1 year ago

Satswalker commented 1 year ago
test/event_test.dart: compose: Returns a correct event object (failed)
  Expected: '3e021e41017828b7ea873bf79f6c4f5f93fbef0cd6c4fa02ddaa27e15b11fbcf'
    Actual: '0d4bac5cb7ff9a24ecaaf6fd496a50ca5719b5e947cde41af6e80fe8985426a9'
     Which: is different.
            Expected: 3e021e4101 ...
              Actual: 0d4bac5cb7 ...
                      ^
             Differ at offset 0

  package:test_api           expect
  test/event_test.dart 78:7  main.<fn>.<fn>
Satswalker commented 1 year ago

This was a test issue. In the failing test I use the clock package to return a fixed value for the current time in order to make event id calculation repeatable. However, the "fixed" DateTime I provided was based on my local time-zone which differs from the GitHub VM.