From 09e39c236843256d884cb2d1657d06c4b9cddf2e Mon Sep 17 00:00:00 2001 From: zo-el Date: Tue, 9 Nov 2021 15:09:20 +0530 Subject: [PATCH] bump version --- tests/src/pagination.ts | 16 +++------------- zomes/chat/Cargo.toml | 2 +- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/tests/src/pagination.ts b/tests/src/pagination.ts index 142ac10..956eb73 100644 --- a/tests/src/pagination.ts +++ b/tests/src/pagination.ts @@ -25,7 +25,6 @@ module.exports = async (orchestrator) => { var sends: any[] = []; var recvs: any[] = []; - function messageEntry(m) { return m.entry } let first_message = { last_seen: { First: null }, @@ -33,19 +32,10 @@ module.exports = async (orchestrator) => { chunk: 0, entry: { uuid: uuidv4(), - content: 'x'.repeat(1025), + content: "Hello from alice :)", } }; - //Send a messages that's too long - try { - await alice_chat.call('chat', 'create_message', first_message); - t.fail() - } catch(e) { - t.deepEqual(e,{ type: 'error', data: { type: 'internal_error', data: 'Source chain error: InvalidCommit error: Message too long' } }) - } - - first_message.entry.content = "Hello from alice :)"; // Alice send a message sends.push(first_message); console.log(sends[0]); @@ -115,9 +105,9 @@ module.exports = async (orchestrator) => { t.deepEqual(sends[3].entry, recvs[3].entry); await delay(4000) // Alice lists the messages - alices_view = await alice_chat.call('chat', 'list_messages', { channel: channel.entry, active_chatter: false, target_message_count: 20 }) + alices_view = await alice_chat.call('chat', 'list_messages', { channel: channel.entry, active_chatter: false, target_message_count: 2 }) // Bobbo lists the messages - bobbos_view = await bobbo_chat.call('chat', 'list_messages', { channel: channel.entry, active_chatter: false, target_message_count: 10 }) + bobbos_view = await bobbo_chat.call('chat', 'list_messages', { channel: channel.entry, active_chatter: false, target_message_count: 2 }) t.deepEqual(alices_view.messages.length, 4) t.deepEqual(bobbos_view.messages.length, 4) console.log("ALICE ", alices_view); diff --git a/zomes/chat/Cargo.toml b/zomes/chat/Cargo.toml index a3f15d8..13f955a 100644 --- a/zomes/chat/Cargo.toml +++ b/zomes/chat/Cargo.toml @@ -2,7 +2,7 @@ authors = ["michael.dougherty@holo.host", "philip.beadle@holo.host", "david.meister@holo.host, tom.gowan@holo.host"] edition = "2018" name = "elemental-chat" -version = "0.2.0-alpha13" +version = "0.2.1-alpha1" [lib] crate-type = ["cdylib", "rlib"]