diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2024-10-25 15:26:31 +0200 |
|---|---|---|
| committer | Jeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com> | 2024-10-28 17:02:14 +0100 |
| commit | 8cd50acd5c961bd9c52f1fcbaf18ddc1015accd0 (patch) | |
| tree | 9b5f8a3d4f3784995c6728942422687f329b36c1 | |
| parent | d9e474cd515e87a9c21897800d0258d3d4b69395 (diff) | |
Exports Tests: Setting a non-existent profile should work
| -rw-r--r-- | exports/exports_test_wrapper.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/exports/exports_test_wrapper.go b/exports/exports_test_wrapper.go index 6a56672..a52c0fe 100644 --- a/exports/exports_test_wrapper.go +++ b/exports/exports_test_wrapper.go @@ -368,8 +368,11 @@ func testSetProfileID(t *testing.T) { prfS := C.CString("idontexist") defer FreeString(prfS) pErr := getError(t, SetProfileID(prfS)) - if pErr == "" { - t.Fatal("got empty error for non-existent profile") + // this might sound wrong but it's correct! + // setting an incorrect profile should still work + // as it can be used for migrating old profiles to the new common codebase + if pErr != "" { + t.Fatal("got empty error setting non-existent profile") } prfS2 := C.CString("employees") defer FreeString(prfS2) |
