Skip to content

Commit 141f58e

Browse files
committed
fix tests
1 parent 6b3ede1 commit 141f58e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/DataBlobs/services/BlobEntry.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ Also see: [`getBlobEntry`](@ref), [`addBlob!`](@ref), [`mergeBlobEntries!`](@ref
125125
function addBlobEntry!(
126126
var::AbstractDFGVariable,
127127
entry::BlobEntry;
128-
blobId::UUID = (isnothing(entry.blobId) ? entry.id : entry.blobId),
128+
blobId::Union{UUID,Nothing} = (isnothing(entry.blobId) ? entry.id : entry.blobId),
129129
blobSize::Int = (hasfield(BlobEntry, :size) ? entry.size : -1)
130130
)
131131
# see https://github.com/JuliaRobotics/DistributedFactorGraphs.jl/issues/985

test/iifInterfaceTests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,8 @@ end
253253
#get
254254
@test deepcopy(de1) == getBlobEntry(v1, :key1)
255255
@test deepcopy(de2) == getBlobEntry(dfg, :a, :key2)
256-
@test_throws ErrorException getBlobEntry(v2, :key1)
257-
@test_throws ErrorException getBlobEntry(dfg, :b, :key1)
256+
@test_throws KeyError getBlobEntry(v2, :key1)
257+
@test_throws KeyError getBlobEntry(dfg, :b, :key1)
258258

259259
#update
260260
@test updateBlobEntry!(dfg, :a, de2_update) == de2_update

0 commit comments

Comments
 (0)