Test using async/await in truffle not working

I am using node v12.13.1, [email protected] and ubuntu 18.04 and running the test using documentation of async/await. https://www.trufflesuite.com/docs/truffle/testing/writing-tests-in-javascript#using-async-await This is my test code: const DappTokenSale = artifacts.require(“DappTokenSale”); const DappToken = artifacts.require(“DappToken”); contract(“DappToken”, async accounts => { let dapptokenInstance = await DappToken.deployed(); let dapptokenSale = await DappTokenSale.deployed(); let admin = accounts[0] console.log(admin) let buyer = accounts[1]…

Details

Golang Full-Text search with mongodb not working

I am currently trying to realize a search form with javascript frontend and go + mongodb backend. To get started I tried the following guide https://code.tutsplus.com/tutorials/full-text-search-in-mongodb–cms-24835 via the mongodb shell. db.messages.insert({“subject”:”Joe owns a dog”, “content”:”Dogs are man’s best friend”, “likes”: 60, “year”:2015, “language”:”english”}) db.messages.insert({“subject”:”Dogs eat cats and dog eats pigeons too”, “content”:”Cats are not evil”,…

Details